From 0d71146a929d94dbeb755556fc457ef66b3022e6 Mon Sep 17 00:00:00 2001 From: fivetran-sheringuyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Mon, 7 Nov 2022 15:08:29 -0900 Subject: [PATCH 1/8] updating twitter keyword vars --- .buildkite/hooks/pre-command | 24 ++++++ .buildkite/pipeline.yml | 73 ++++++++++++++++++ .buildkite/scripts/run_models.sh | 21 +++++ .circleci/config.yml | 77 ------------------- .github/pull_request_template.md | 4 +- CHANGELOG.md | 5 ++ integration_tests/ci/sample.profiles.yml | 34 ++++---- integration_tests/requirements.txt | 3 +- models/ad_reporting__keyword_report.sql | 2 +- .../int_ad_reporting__keyword_report.sql | 2 +- 10 files changed, 143 insertions(+), 102 deletions(-) create mode 100644 .buildkite/hooks/pre-command create mode 100644 .buildkite/pipeline.yml create mode 100644 .buildkite/scripts/run_models.sh delete mode 100644 .circleci/config.yml diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command new file mode 100644 index 0000000..04c85c0 --- /dev/null +++ b/.buildkite/hooks/pre-command @@ -0,0 +1,24 @@ +#!/bin/bash + +set -e + +# Export secrets for Docker containers. +# Restrict exposing secrets only to the steps that need them +export GCLOUD_SERVICE_KEY=$(gcloud secrets versions access latest --secret="GCLOUD_SERVICE_KEY" --project="dbt-package-testing-363917") +export CI_POSTGRES_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_POSTGRES_DBT_HOST" --project="dbt-package-testing-363917") +export CI_POSTGRES_DBT_USER=$(gcloud secrets versions access latest --secret="CI_POSTGRES_DBT_USER" --project="dbt-package-testing-363917") +export CI_POSTGRES_DBT_PASS=$(gcloud secrets versions access latest --secret="CI_POSTGRES_DBT_PASS" --project="dbt-package-testing-363917") +export CI_POSTGRES_DBT_DBNAME=$(gcloud secrets versions access latest --secret="CI_POSTGRES_DBT_DBNAME" --project="dbt-package-testing-363917") +export CI_REDSHIFT_DBT_DBNAME=$(gcloud secrets versions access latest --secret="CI_REDSHIFT_DBT_DBNAME" --project="dbt-package-testing-363917") +export CI_REDSHIFT_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_REDSHIFT_DBT_HOST" --project="dbt-package-testing-363917") +export CI_REDSHIFT_DBT_PASS=$(gcloud secrets versions access latest --secret="CI_REDSHIFT_DBT_PASS" --project="dbt-package-testing-363917") +export CI_REDSHIFT_DBT_USER=$(gcloud secrets versions access latest --secret="CI_REDSHIFT_DBT_USER" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_ACCOUNT=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_ACCOUNT" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_DATABASE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_DATABASE" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_PASS=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_PASS" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_ROLE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_ROLE" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_USER=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_USER" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_WAREHOUSE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_WAREHOUSE" --project="dbt-package-testing-363917") +export CI_DATABRICKS_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HOST" --project="dbt-package-testing-363917") +export CI_DATABRICKS_DBT_HTTP_PATH=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HTTP_PATH" --project="dbt-package-testing-363917") +export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917") \ No newline at end of file diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000..4c799f0 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,73 @@ +steps: + - label: ":postgres: Run Tests - Postgres" + key: "run-dbt-postgres" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "CI_POSTGRES_DBT_DBNAME" + - "CI_POSTGRES_DBT_HOST" + - "CI_POSTGRES_DBT_PASS" + - "CI_POSTGRES_DBT_USER" + commands: | + bash .buildkite/scripts/run_models.sh postgres + + - label: ":snowflake-db: Run Tests - Snowflake" + key: "run_dbt_snowflake" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "CI_SNOWFLAKE_DBT_ACCOUNT" + - "CI_SNOWFLAKE_DBT_DATABASE" + - "CI_SNOWFLAKE_DBT_PASS" + - "CI_SNOWFLAKE_DBT_ROLE" + - "CI_SNOWFLAKE_DBT_USER" + - "CI_SNOWFLAKE_DBT_WAREHOUSE" + commands: | + bash .buildkite/scripts/run_models.sh snowflake + + - label: ":gcloud: Run Tests - BigQuery" + key: "run_dbt_bigquery" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "GCLOUD_SERVICE_KEY" + commands: | + bash .buildkite/scripts/run_models.sh bigquery + + - label: ":amazon-redshift: Run Tests - Redshift" + key: "run_dbt_redshift" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "CI_REDSHIFT_DBT_DBNAME" + - "CI_REDSHIFT_DBT_HOST" + - "CI_REDSHIFT_DBT_PASS" + - "CI_REDSHIFT_DBT_USER" + commands: | + bash .buildkite/scripts/run_models.sh redshift + + - label: ":bricks: Run Tests - Databricks" + key: "run_dbt_databricks" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "CI_DATABRICKS_DBT_HOST" + - "CI_DATABRICKS_DBT_HTTP_PATH" + - "CI_DATABRICKS_DBT_TOKEN" + commands: | + bash .buildkite/scripts/run_models.sh databricks \ No newline at end of file diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh new file mode 100644 index 0000000..ea3de4b --- /dev/null +++ b/.buildkite/scripts/run_models.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -euo pipefail + +apt-get update +apt-get install libsasl2-dev + +python3 -m venv venv +. venv/bin/activate +pip install --upgrade pip setuptools +pip install -r integration_tests/requirements.txt +mkdir -p ~/.dbt +cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml + +db=$1 +echo `pwd` +cd integration_tests +dbt deps +dbt seed --target "$db" --full-refresh +dbt run --target "$db" --full-refresh +dbt test --target "$db" \ No newline at end of file diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 1969c86..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,77 +0,0 @@ -version: 2 - -jobs: - build: - docker: - - image: circleci/python:3.7.9-stretch - - steps: - - checkout - - - run: - run: setup_creds - command: | - echo $GCLOUD_SERVICE_KEY | base64 --decode --ignore-garbage > ${HOME}/gcloud-service-key.json - - run: - name: "Setup dbt" - command: | - sudo apt install libsasl2-dev - python3 -m venv venv - . venv/bin/activate - pip install --upgrade pip setuptools - pip install -r integration_tests/requirements.txt - mkdir -p ~/.dbt - cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml - - run: - name: "Run Tests - Postgres" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target postgres --full-refresh - dbt run --target postgres --full-refresh - dbt test --target postgres - - run: - name: "Run Tests - Redshift" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target redshift --full-refresh - dbt run --target redshift --full-refresh - dbt test --target redshift - - run: - name: "Run Tests - BigQuery" - environment: - GCLOUD_SERVICE_KEY_PATH: "/home/circleci/gcloud-service-key.json" - - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target bigquery --full-refresh - dbt run --target bigquery --full-refresh - dbt test --target bigquery - - run: - name: "Run Tests - Snowflake" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target snowflake --full-refresh - dbt run --target snowflake --full-refresh - dbt test --target snowflake - - run: - name: "Run Tests - Spark" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target spark --full-refresh - dbt run --target spark --full-refresh --vars '{ad_reporting__pinterest_ads_enabled: false, ad_reporting__tiktok_ads_enabled: false, ad_reporting__snapchat_ads_enabled: false, ad_reporting__apple_search_ads_enabled: false, ad_reporting__twitter_ads_enabled: false}' - dbt test --target spark --vars '{ad_reporting__pinterest_ads_enabled: false, ad_reporting__tiktok_ads_enabled: false, ad_reporting__snapchat_ads_enabled: false, ad_reporting__apple_search_ads_enabled: false, ad_reporting__twitter_ads_enabled: false}' \ No newline at end of file diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f450926..50ee0df 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -28,9 +28,9 @@ **How did you test the PR changes?** - + -- [ ] CircleCi +- [ ] Buildkite - [ ] Local (please provide additional testing details below) **Select which warehouse(s) were used to test the PR** diff --git a/CHANGELOG.md b/CHANGELOG.md index 0352145..076b018 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# dbt_ad_reporting v1.0.2 + +## 🕷️ Bugfixes 🕷️ +- Updated `twitter_ads__using_keywords` variables that were had inconsistent defaults [#]() + # dbt_ad_reporting v1.0.1 ## 🎉 Feature Enhancements 🎉 diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index f82127a..bf5d1ae 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -1,5 +1,5 @@ -# HEY! This file is used in the Ad Reporting tests with CircleCI. +# HEY! This file is used in the dbt package integrations tests with Buildkite. # You should __NEVER__ check credentials into version control. Thanks for reading :) config: @@ -7,7 +7,7 @@ config: use_colors: True integration_tests: - target: snowflake + target: redshift outputs: redshift: type: redshift @@ -20,11 +20,11 @@ integration_tests: threads: 8 bigquery: type: bigquery - method: service-account - keyfile: "{{ env_var('GCLOUD_SERVICE_KEY_PATH') }}" + method: service-account-json project: 'dbt-package-testing' schema: ad_reporting_integration_tests_v1 threads: 8 + keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}" snowflake: type: snowflake account: "{{ env_var('CI_SNOWFLAKE_DBT_ACCOUNT') }}" @@ -35,26 +35,20 @@ integration_tests: warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" schema: ad_reporting_integration_tests_v1 threads: 8 - spark: - type: spark - method: http - schema: ad_reporting_integration_tests_v1 - host: "{{ env_var('CI_SPARK_DBT_HOST') }}" - organization: "{{ env_var('CI_SPARK_DBT_ORGANIZATION') }}" - token: "{{ env_var('CI_SPARK_DBT_TOKEN') }}" - cluster: "{{ env_var('CI_SPARK_DBT_CLUSTER') }}" - port: 443 - connect_timeout: 60 - connect_retries: 5 - threads: 4 postgres: type: postgres host: "{{ env_var('CI_POSTGRES_DBT_HOST') }}" user: "{{ env_var('CI_POSTGRES_DBT_USER') }}" - password: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" + pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" + dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" port: 5432 - dbname: "{{ env_var('CI_POSTGRES_DBT_DATABASE') }}" schema: ad_reporting_integration_tests_v1 threads: 8 - keepalives_idle: 0 - sslmode: prefer + databricks: + catalog: null + host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" + http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" + schema: ad_reporting_integration_tests_v1 + threads: 2 + token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" + type: databricks \ No newline at end of file diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt index 4913903..16a258d 100644 --- a/integration_tests/requirements.txt +++ b/integration_tests/requirements.txt @@ -3,4 +3,5 @@ dbt-bigquery>=1.0.0 dbt-redshift>=1.0.0 dbt-postgres>=1.0.0 dbt-spark>=1.0.0 -dbt-spark[PyHive]>=1.0.0 \ No newline at end of file +dbt-spark[PyHive]>=1.0.0 +dbt-databricks>=1.0.0 \ No newline at end of file diff --git a/models/ad_reporting__keyword_report.sql b/models/ad_reporting__keyword_report.sql index 6164d61..7796743 100644 --- a/models/ad_reporting__keyword_report.sql +++ b/models/ad_reporting__keyword_report.sql @@ -1,4 +1,4 @@ -{% if var('twitter_ads__using_keywords', False) %} +{% if var('twitter_ads__using_keywords', True) %} {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %} {% else %} {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads'] %} diff --git a/models/intermediate/int_ad_reporting__keyword_report.sql b/models/intermediate/int_ad_reporting__keyword_report.sql index 7d5c3a7..5003612 100644 --- a/models/intermediate/int_ad_reporting__keyword_report.sql +++ b/models/intermediate/int_ad_reporting__keyword_report.sql @@ -71,7 +71,7 @@ pinterest_ads as ( ), {% endif %} -{% if 'twitter_ads' in enabled_packages and var('twitter_ads__using_keywords', False) %} +{% if 'twitter_ads' in enabled_packages and var('twitter_ads__using_keywords', True) %} twitter_ads as ( {{ get_query( From f2ef3c339e2e9085ed3fa4a6afaa4fbdf5362c12 Mon Sep 17 00:00:00 2001 From: fivetran-sheringuyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Tue, 8 Nov 2022 10:53:51 -0900 Subject: [PATCH 2/8] updating for databricks dispatch --- CHANGELOG.md | 2 +- dbt_project.yml | 2 +- integration_tests/dbt_project.yml | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 076b018..85176e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # dbt_ad_reporting v1.0.2 ## 🕷️ Bugfixes 🕷️ -- Updated `twitter_ads__using_keywords` variables that were had inconsistent defaults [#]() +- Updated `twitter_ads__using_keywords` to have consistent defaults. [#70](https://github.com/fivetran/dbt_ad_reporting/pull/70) # dbt_ad_reporting v1.0.1 diff --git a/dbt_project.yml b/dbt_project.yml index e3624fb..141f9d2 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'ad_reporting' -version: '1.0.1' +version: '1.0.2' config-version: 2 require-dbt-version: [">=1.0.0", "<2.0.0"] diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index d9d44e3..acf2f42 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'ad_reporting_integration_tests' -version: '1.0.1' +version: '1.0.2' profile: 'integration_tests' config-version: 2 @@ -125,7 +125,7 @@ seeds: ### Microsoft Seeds microsoft_ads_account_history_data: +column_types: - name: "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}" + name: "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}" microsoft_ads_ad_group_history_data: +column_types: id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" @@ -242,7 +242,7 @@ seeds: twitter_account_history_data: +column_types: - name: "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}" + name: "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}" twitter_tweet_url_data: +column_types: tweet_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" @@ -445,14 +445,14 @@ seeds: ### Facebook Seeds facebook_ads_creative_history_data: +column_types: - page_link: "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}" - template_page_link: "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}" + 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' }}" facebook_ads_account_history_data: +column_types: id: "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}" - name: "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}" + name: "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}" facebook_ads_ad_history_data: +column_types: id: "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}" From 69e543be70785aee9bcef810c608e20d44eb9038 Mon Sep 17 00:00:00 2001 From: fivetran-sheringuyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Tue, 8 Nov 2022 13:22:26 -0900 Subject: [PATCH 3/8] updating docs --- integration_tests/ci/sample.profiles.yml | 10 +++++----- integration_tests/dbt_project.yml | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index bf5d1ae..52a4202 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -16,13 +16,13 @@ integration_tests: pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" port: 5439 - schema: ad_reporting_integration_tests_v1 + schema: ad_reporting_integration_tests_2 threads: 8 bigquery: type: bigquery method: service-account-json project: 'dbt-package-testing' - schema: ad_reporting_integration_tests_v1 + schema: ad_reporting_integration_tests_2 threads: 8 keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}" snowflake: @@ -33,7 +33,7 @@ integration_tests: role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" - schema: ad_reporting_integration_tests_v1 + schema: ad_reporting_integration_tests_2 threads: 8 postgres: type: postgres @@ -42,13 +42,13 @@ integration_tests: pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" port: 5432 - schema: ad_reporting_integration_tests_v1 + schema: ad_reporting_integration_tests_2 threads: 8 databricks: catalog: null host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: ad_reporting_integration_tests_v1 + schema: ad_reporting_integration_tests_2 threads: 2 token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" type: databricks \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index acf2f42..9268f79 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -8,10 +8,11 @@ dispatch: search_order: ['spark_utils', 'dbt_utils'] vars: + apple_search_ads__using_search_terms: True twitter_ads__using_keywords: False apple_search_ads_source: - apple_search_ads_schema: ad_reporting_integration_tests_v1 + apple_search_ads_schema: ad_reporting_integration_tests_2 apple_search_ads_organization_identifier: "apple_search_organization_data" apple_search_ads_campaign_history_identifier: "apple_search_campaign_history_data" apple_search_ads_campaign_report_identifier: "apple_search_campaign_report_data" @@ -25,7 +26,7 @@ vars: apple_search_ads__using_search_terms: True google_ads_source: - google_ads_schema: ad_reporting_integration_tests_v1 + google_ads_schema: ad_reporting_integration_tests_2 google_ads_ad_stats_identifier: "google_ads_ad_stats_data" google_ads_ad_history_identifier: "google_ads_ad_history_data" google_ads_ad_group_history_identifier: "google_ads_ad_group_history_data" @@ -38,7 +39,7 @@ vars: google_ads_ad_group_criterion_history_identifier: "google_ads_ad_group_criterion_history_data" microsoft_ads_source: - microsoft_ads_schema: ad_reporting_integration_tests_v1 + microsoft_ads_schema: ad_reporting_integration_tests_2 microsoft_ads_account_history_identifier: "microsoft_ads_account_history_data" microsoft_ads_account_daily_report_identifier: "microsoft_ads_account_performance_daily_report_data" microsoft_ads_ad_group_history_identifier: "microsoft_ads_ad_group_history_data" @@ -52,7 +53,7 @@ vars: microsoft_ads_search_daily_report_identifier: "microsoft_ads_search_performance_daily_report_data" linkedin_source: - linkedin_ads_schema: ad_reporting_integration_tests_v1 + linkedin_ads_schema: ad_reporting_integration_tests_2 linkedin_ads_account_history_identifier: "linkedin_ad_account_history_data" linkedin_ads_ad_analytics_by_creative_identifier: "linkedin_ad_analytics_by_creative_data" linkedin_ads_campaign_group_history_identifier: "linkedin_ad_campaign_group_history_data" @@ -61,7 +62,7 @@ vars: linkedin_ads_ad_analytics_by_campaign_identifier: "linkedin_ad_analytics_by_campaign_data" twitter_ads_source: - twitter_ads_schema: ad_reporting_integration_tests_v1 + twitter_ads_schema: ad_reporting_integration_tests_2 twitter_ads_account_history_identifier: "twitter_account_history_data" twitter_ads_campaign_history_identifier: "twitter_campaign_history_data" twitter_ads_line_item_history_identifier: "twitter_line_item_history_data" @@ -75,7 +76,7 @@ vars: twitter_ads_line_item_keywords_report_identifier: "twitter_line_item_keywords_report_data" pinterest_source: - pinterest_schema: ad_reporting_integration_tests_v1 + pinterest_schema: ad_reporting_integration_tests_2 pinterest_ad_group_history_identifier: "pinterest_ads_ad_group_history_data" pinterest_campaign_history_identifier: "pinterest_ads_campaign_history_data" pinterest_pin_promotion_history_identifier: "pinterest_ads_pin_promotion_history_data" @@ -88,7 +89,7 @@ vars: pinterest_advertiser_report_identifier: "pinterest_ads_advertiser_report_data" facebook_ads_source: - facebook_ads_schema: ad_reporting_integration_tests_v1 + facebook_ads_schema: ad_reporting_integration_tests_2 facebook_ads_account_history_identifier: "facebook_ads_account_history_data" facebook_ads_ad_history_identifier: "facebook_ads_ad_history_data" facebook_ads_ad_set_history_identifier: "facebook_ads_ad_set_history_data" @@ -97,7 +98,7 @@ vars: facebook_ads_creative_history_identifier: "facebook_ads_creative_history_data" snapchat_ads_source: - snapchat_ads_schema: ad_reporting_integration_tests_v1 + snapchat_ads_schema: ad_reporting_integration_tests_2 snapchat_ads_ad_account_history_identifier: "snapchat_ad_account_history_data" snapchat_ads_ad_history_identifier: "snapchat_ad_history_data" snapchat_ads_ad_hourly_report_identifier: "snapchat_ad_hourly_report_data" @@ -109,7 +110,7 @@ vars: snapchat_ads_creative_url_tag_history_identifier: "snapchat_creative_url_tag_history_data" tiktok_ads_source: - tiktok_ads_schema: ad_reporting_integration_tests_v1 + tiktok_ads_schema: ad_reporting_integration_tests_2 tiktok_ads__ad_group_history_identifier: "tiktok_adgroup_history_data" tiktok_ads__ad_history_identifier: "tiktok_ad_history_data" tiktok_ads__advertiser_identifier: "tiktok_advertiser_data" From 7d89516ec800fce79e3e75c98a0c6b4ccdaa3c74 Mon Sep 17 00:00:00 2001 From: fivetran-sheringuyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Tue, 8 Nov 2022 13:22:55 -0900 Subject: [PATCH 4/8] docs --- docs/catalog.json | 2 +- docs/index.html | 24 ++++++++++++------------ docs/manifest.json | 2 +- docs/run_results.json | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index 3734040..c6709bc 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.2.0", "generated_at": "2022-09-07T05:23:37.589373Z", "invocation_id": "e52f20b1-cafa-4719-95d5-7d7809766aa4", "env": {}}, "nodes": {"seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 177.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_ad_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "INT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "INT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "INT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "INT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_campaign_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 58.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "STRING", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "STRING", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "STRING", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "INT64", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "STRING", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 13, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 703.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4150.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2971.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84840.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_ad_set_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 924.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 399720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_adgroup_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data"}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_organization_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 132.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8084.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1765.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_advertiser_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 100.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1415996.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "INT64", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "INT64", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "INT64", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "INT64", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "STRING", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "STRING", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "INT64", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 29.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 101.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_tweet_url_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16671.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_campaign_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data"}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3481.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 59.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2484.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_account_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1163.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 272.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 120.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 55360.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 320.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "INT64", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "INT64", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "BOOL", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1072.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_promoted_tweet_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10500.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data"}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_account_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}, "engagements": {"type": "INT64", "index": 5, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 6, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 8, "name": "likes", "comment": null}, "replies": {"type": "INT64", "index": 9, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 10, "name": "retweets", "comment": null}, "unfollows": {"type": "INT64", "index": 11, "name": "unfollows", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 472.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7263.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_criterion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15771.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 261.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1894.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data"}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 159.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 940.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_squad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 30780.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 228.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18802.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 119.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1151.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_analytics_by_creative_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2968.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 799.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_pin_promotion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3204.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 18.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1524.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data"}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_keyword_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4260.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 882.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 334.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 419.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 522.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 713.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_campaign_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 232.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10767.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 111.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_pin_promotion_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATETIME", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9708.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_keywords_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "segment": {"type": "STRING", "index": 5, "name": "segment", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 7, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 8, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 9, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 10, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 11, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 13, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 16, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 17, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 18, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 21, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 22, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 25, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 27, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 30, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 31, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 32, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 35, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 37, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 40, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 50, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 51, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 54, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 56, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 59, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 60, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 61, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 62, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 63, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 64, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 65, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 70, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 80, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 85, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 90, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 94, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 99, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 100, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 101, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 106, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 107, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 108, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 111, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 112, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 165, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 167, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 170, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 171, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 172, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 175, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 176, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 177, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 180, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 181, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 182, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 183, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 184, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 210, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 211, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 212, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 213, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 214, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 229, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 230, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 231, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 232, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 233, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 234, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 235, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 236, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 237, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 238, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 239, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 240, "name": "url_clicks", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 241, "name": "video_15_s_views", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 242, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 243, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 244, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 245, "name": "video_cta_clicks", "comment": null}, "video_total_views": {"type": "INT64", "index": 246, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 247, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 248, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 249, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 250, "name": "video_views_75", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8100.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1651.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_squad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_promoted_tweet_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2541.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 21.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_advertiser_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1344.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_creative_url_tag_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 41413.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 383.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data"}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 66.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_campaign_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3590.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_account_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3500.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 19.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data"}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_search_term_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35485.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 150.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 658.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 38470.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 229.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_search_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2126.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8091.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2973.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1040.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 604.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12573.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 99.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_basic_ad_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 480.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 68992.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 401.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_analytics_by_campaign_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "DATETIME", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7252.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1125.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 170.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 595.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_advertiser_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "INT64", "index": 14, "name": "reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "INT64", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "STRING", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 439.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9602.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 53.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_tweet_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1312.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_adgroup_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "STRING", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "INT64", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "INT64", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "INT64", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "STRING", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "STRING", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "INT64", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "INT64", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "INT64", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "BOOL", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "STRING", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "STRING", "index": 64, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "STRING", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "STRING", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2527.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__search_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2126.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__account_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"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__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 2, "name": "ad_group_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_at": {"type": "DATETIME", "index": 4, "name": "modified_at", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 668.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"keyword_id": {"type": "INT64", "index": 1, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 2, "name": "keyword_name", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 3, "name": "modified_at", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 605.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 38470.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 229.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}}, "stats": {"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__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "modified_at": {"type": "DATETIME", "index": 3, "name": "modified_at", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 180.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9602.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 53.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__search_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"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.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 2, "name": "campaign_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_at": {"type": "DATETIME", "index": 4, "name": "modified_at", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 950.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"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_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 2, "name": "ad_name", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 5, "name": "modified_at", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1135.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 68992.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 401.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"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__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 399720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"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__account_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__account_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1163.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 8, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 9, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 10, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 12, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 13, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 14, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 15, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 16, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 17, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 18, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 19, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 20, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 21, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 22, "name": "daily_ctr", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 638.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, "model.tiktok_ads.tiktok_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 10, "name": "currency", "comment": null}, "category": {"type": "INT64", "index": 11, "name": "category", "comment": null}, "action_categories": {"type": "STRING", "index": 12, "name": "action_categories", "comment": null}, "gender": {"type": "STRING", "index": 13, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 14, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 15, "name": "budget", "comment": null}, "age": {"type": "STRING", "index": 16, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 17, "name": "languages", "comment": null}, "interest_category": {"type": "STRING", "index": 18, "name": "interest_category", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 21, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 22, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 23, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 24, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 25, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 26, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 27, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 28, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 29, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 30, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 31, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 32, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 33, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 34, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 35, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 36, "name": "daily_ctr", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1479.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, "model.tiktok_ads.tiktok_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "base_url": {"type": "STRING", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 17, "name": "utm_term", "comment": null}, "currency": {"type": "STRING", "index": 18, "name": "currency", "comment": null}, "action_categories": {"type": "STRING", "index": 19, "name": "action_categories", "comment": null}, "category": {"type": "INT64", "index": 20, "name": "category", "comment": null}, "gender": {"type": "STRING", "index": 21, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 22, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 23, "name": "budget", "comment": null}, "age": {"type": "STRING", "index": 24, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 25, "name": "languages", "comment": null}, "interest_category": {"type": "STRING", "index": 26, "name": "interest_category", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 28, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 29, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 30, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 31, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 32, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 33, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 34, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 35, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 36, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 37, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 38, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 39, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 40, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 41, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 42, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 43, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 44, "name": "daily_ctr", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1726.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "action_categories": {"type": "STRING", "index": 9, "name": "action_categories", "comment": null}, "category": {"type": "INT64", "index": 10, "name": "category", "comment": null}, "gender": {"type": "STRING", "index": 11, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 12, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 13, "name": "budget", "comment": null}, "age": {"type": "STRING", "index": 14, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 15, "name": "languages", "comment": null}, "interest_category": {"type": "STRING", "index": 16, "name": "interest_category", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 20, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 21, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 22, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 23, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 24, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 25, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 26, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 27, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 28, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 29, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 30, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 31, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 32, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 33, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 34, "name": "daily_ctr", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1259.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, "model.tiktok_ads.tiktok_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 11, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 12, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 13, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 14, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 15, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 16, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 17, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 18, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 19, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 20, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 21, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 22, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 23, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 24, "name": "daily_ctr", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 741.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, "model.twitter_ads.twitter_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 5, "name": "is_deleted", "comment": null}, "timezone": {"type": "STRING", "index": 6, "name": "timezone", "comment": null}, "industry_type": {"type": "INT64", "index": 7, "name": "industry_type", "comment": null}, "approval_status": {"type": "STRING", "index": 8, "name": "approval_status", "comment": null}, "business_name": {"type": "INT64", "index": 9, "name": "business_name", "comment": null}, "business_id": {"type": "INT64", "index": 10, "name": "business_id", "comment": null}, "created_timestamp": {"type": "STRING", "index": 11, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 12, "name": "updated_timestamp", "comment": null}, "timezone_switched_timestamp": {"type": "STRING", "index": 13, "name": "timezone_switched_timestamp", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 17, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 18, "name": "url_clicks", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16745.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 85.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, "model.twitter_ads.twitter_ads__line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__line_item_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 8, "name": "line_item_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 9, "name": "is_deleted", "comment": null}, "line_item_status": {"type": "STRING", "index": 10, "name": "line_item_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "currency": {"type": "STRING", "index": 12, "name": "currency", "comment": null}, "advertiser_domain": {"type": "STRING", "index": 13, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 14, "name": "advertiser_user_id", "comment": null}, "bid_type": {"type": "STRING", "index": 15, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 16, "name": "bid_unit", "comment": null}, "charge_by": {"type": "STRING", "index": 17, "name": "charge_by", "comment": null}, "objective": {"type": "STRING", "index": 18, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 19, "name": "optimization", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 21, "name": "primary_web_event_tag", "comment": null}, "creative_source": {"type": "STRING", "index": 22, "name": "creative_source", "comment": null}, "start_timestamp": {"type": "INT64", "index": 23, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "INT64", "index": 24, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "STRING", "index": 25, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 26, "name": "updated_timestamp", "comment": null}, "target_cpa": {"type": "FLOAT64", "index": 27, "name": "target_cpa", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 28, "name": "total_budget_amount", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 29, "name": "bid_amount", "comment": null}, "clicks": {"type": "INT64", "index": 30, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 31, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 32, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 33, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 34, "name": "url_clicks", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1141.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, "model.twitter_ads.twitter_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 7, "name": "is_deleted", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "currency": {"type": "STRING", "index": 9, "name": "currency", "comment": null}, "is_servable": {"type": "BOOL", "index": 10, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "BOOL", "index": 11, "name": "is_standard_delivery", "comment": null}, "frequency_cap": {"type": "INT64", "index": 12, "name": "frequency_cap", "comment": null}, "start_timestamp": {"type": "STRING", "index": 13, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "STRING", "index": 14, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "STRING", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 16, "name": "updated_timestamp", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 17, "name": "funding_instrument_id", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 18, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 19, "name": "total_budget_amount", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 22, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 23, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 24, "name": "url_clicks", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 382.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, "model.twitter_ads.twitter_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 8, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 9, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 10, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "INT64", "index": 11, "name": "tweet_name", "comment": null}, "tweet_full_text": {"type": "STRING", "index": 12, "name": "tweet_full_text", "comment": null}, "base_url": {"type": "STRING", "index": 13, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 14, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 15, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 16, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 17, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 18, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 19, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 20, "name": "utm_term", "comment": null}, "expanded_url": {"type": "STRING", "index": 21, "name": "expanded_url", "comment": null}, "display_url": {"type": "STRING", "index": 22, "name": "display_url", "comment": null}, "currency": {"type": "STRING", "index": 23, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 24, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 26, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 27, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 28, "name": "url_clicks", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 19406.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 72.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__url_report"}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__promoted_tweet_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 8, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 9, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 10, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "INT64", "index": 11, "name": "tweet_name", "comment": null}, "full_text": {"type": "STRING", "index": 12, "name": "full_text", "comment": null}, "is_deleted": {"type": "BOOL", "index": 13, "name": "is_deleted", "comment": null}, "promoted_tweet_status": {"type": "STRING", "index": 14, "name": "promoted_tweet_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 15, "name": "campaign_status", "comment": null}, "line_item_status": {"type": "STRING", "index": 16, "name": "line_item_status", "comment": null}, "language": {"type": "STRING", "index": 17, "name": "language", "comment": null}, "currency": {"type": "STRING", "index": 18, "name": "currency", "comment": null}, "approval_status": {"type": "STRING", "index": 19, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "STRING", "index": 20, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 21, "name": "updated_timestamp", "comment": null}, "clicks": {"type": "INT64", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 23, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 24, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 25, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 26, "name": "url_clicks", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 26200.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, "model.pinterest.pinterest_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 8, "name": "keyword_id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "keyword_value": {"type": "STRING", "index": 11, "name": "keyword_value", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1854.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 29.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, "model.pinterest.pinterest_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 5, "name": "campaign_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 8, "name": "ad_group_id", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "start_time": {"type": "STRING", "index": 10, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 11, "name": "end_time", "comment": null}, "ad_group_status": {"type": "STRING", "index": 12, "name": "ad_group_status", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, "model.pinterest.pinterest_ads__pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 9, "name": "ad_group_status", "comment": null}, "creative_type": {"type": "STRING", "index": 10, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 11, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "STRING", "index": 12, "name": "pin_name", "comment": null}, "pin_status": {"type": "STRING", "index": 13, "name": "pin_status", "comment": null}, "destination_url": {"type": "STRING", "index": 14, "name": "destination_url", "comment": null}, "base_url": {"type": "STRING", "index": 15, "name": "base_url", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 26592.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, "model.pinterest.pinterest_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, "model.pinterest.pinterest_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 9, "name": "ad_group_status", "comment": null}, "destination_url": {"type": "STRING", "index": 10, "name": "destination_url", "comment": null}, "creative_type": {"type": "STRING", "index": 11, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 12, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "STRING", "index": 13, "name": "pin_name", "comment": null}, "pin_status": {"type": "STRING", "index": 14, "name": "pin_status", "comment": null}, "base_url": {"type": "STRING", "index": 15, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 16, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 17, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 18, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 19, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 20, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 21, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 22, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 23, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 24, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 25, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 29292.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__url_report"}, "model.pinterest.pinterest_ads__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_status": {"type": "STRING", "index": 4, "name": "advertiser_status", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "billing_type": {"type": "STRING", "index": 7, "name": "billing_type", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 930.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, "model.google_ads.google_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "INT64", "index": 8, "name": "criterion_id", "comment": null}, "type": {"type": "STRING", "index": 9, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 11, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 12, "name": "keyword_text", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1710.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__keyword_report"}, "model.google_ads.google_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 5, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "INT64", "index": 6, "name": "time_zone", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 690.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__account_report"}, "model.google_ads.google_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "STRING", "index": 8, "name": "ad_group_status", "comment": null}, "ad_group_type": {"type": "STRING", "index": 9, "name": "ad_group_type", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1455.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_group_report"}, "model.google_ads.google_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 6, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 7, "name": "advertising_channel_subtype", "comment": null}, "status": {"type": "STRING", "index": 8, "name": "status", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1648.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__campaign_report"}, "model.google_ads.google_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "base_url": {"type": "STRING", "index": 9, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 10, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 11, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 12, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 13, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 14, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 15, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 16, "name": "utm_term", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1000.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__url_report"}, "model.google_ads.google_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "INT64", "index": 9, "name": "ad_name", "comment": null}, "ad_status": {"type": "STRING", "index": 10, "name": "ad_status", "comment": null}, "ad_type": {"type": "INT64", "index": 11, "name": "ad_type", "comment": null}, "display_url": {"type": "INT64", "index": 12, "name": "display_url", "comment": null}, "source_final_urls": {"type": "STRING", "index": 13, "name": "source_final_urls", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1170.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_report"}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_creative", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 5, "name": "cost", "comment": null}}, "stats": {"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__account_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "currency": {"type": "STRING", "index": 3, "name": "currency", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 7, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 8, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 9, "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__campaign_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 2, "name": "campaign_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 3, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}, "cost_type": {"type": "STRING", "index": 8, "name": "cost_type", "comment": null}, "creative_selection": {"type": "STRING", "index": 9, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 10, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "STRING", "index": 11, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "FLOAT64", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "STRING", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "format": {"type": "STRING", "index": 14, "name": "format", "comment": null}, "locale_country": {"type": "STRING", "index": 15, "name": "locale_country", "comment": null}, "locale_language": {"type": "STRING", "index": 16, "name": "locale_language", "comment": null}, "objective_type": {"type": "STRING", "index": 17, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "STRING", "index": 18, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "BOOL", "index": 19, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "BOOL", "index": 20, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 21, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 22, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 23, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 24, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 25, "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_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "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__creative_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 6, "name": "click_uri", "comment": null}, "call_to_action_label_type": {"type": "STRING", "index": 7, "name": "call_to_action_label_type", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 9, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 10, "name": "is_latest_version", "comment": null}, "base_url": {"type": "STRING", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 18, "name": "utm_term", "comment": null}}, "stats": {"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__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_group_id": {"type": "INT64", "index": 1, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 2, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "is_backfilled": {"type": "BOOL", "index": 5, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 6, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 7, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 9, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 10, "name": "is_latest_version", "comment": null}}, "stats": {"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__ad_analytics_by_campaign": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 5, "name": "cost", "comment": null}}, "stats": {"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_v1_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "DATETIME", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"}, "model.facebook_ads.facebook_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 7, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "creative_id": {"type": "INT64", "index": 10, "name": "creative_id", "comment": null}, "creative_name": {"type": "STRING", "index": 11, "name": "creative_name", "comment": null}, "base_url": {"type": "STRING", "index": 12, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 13, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 14, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 15, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 16, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 17, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 18, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 19, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 22, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, "model.facebook_ads.facebook_ads__url_tags": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__url_tags", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 3, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 4, "name": "value", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13970.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 220.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, "model.facebook_ads.facebook_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 7, "name": "end_at", "comment": null}, "status": {"type": "STRING", "index": 8, "name": "status", "comment": null}, "daily_budget": {"type": "INT64", "index": 9, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "INT64", "index": 10, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "FLOAT64", "index": 11, "name": "budget_remaining", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1000.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, "model.facebook_ads.facebook_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_status": {"type": "STRING", "index": 4, "name": "account_status", "comment": null}, "business_country_code": {"type": "STRING", "index": 5, "name": "business_country_code", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "timezone_name": {"type": "STRING", "index": 8, "name": "timezone_name", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 594.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, "model.facebook_ads.facebook_ads__ad_set_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__ad_set_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 7, "name": "ad_set_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 8, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 9, "name": "end_at", "comment": null}, "bid_strategy": {"type": "STRING", "index": 10, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "INT64", "index": 11, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "INT64", "index": 12, "name": "budget_remaining", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1340.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, "model.facebook_ads.int_facebook_ads__creative_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "int_facebook_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 4, "name": "creative_name", "comment": null}, "url": {"type": "STRING", "index": 5, "name": "url", "comment": null}, "base_url": {"type": "STRING", "index": 6, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 7, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 8, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 9, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 10, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 11, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 12, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 13, "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.facebook_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 7, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1460.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, "model.snapchat_ads.snapchat_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "STRING", "index": 4, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 5, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "base_url": {"type": "STRING", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 14, "name": "utm_term", "comment": null}, "swipes": {"type": "INT64", "index": 15, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 21852.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 70.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__ad_squad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 6, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "STRING", "index": 7, "name": "ad_squad_name", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 9, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 140.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, "model.snapchat_ads.snapchat_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 7, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 70.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, "model.snapchat_ads.snapchat_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "STRING", "index": 4, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 5, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 7, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 70.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, "model.snapchat_ads.snapchat_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 416.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}}, "stats": {"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__ad_group_criterion_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_criterion_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "ad_group_type": {"type": "STRING", "index": 3, "name": "ad_group_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 7, "name": "ad_group_status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 290.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history"}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "device": {"type": "STRING", "index": 5, "name": "device", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1165.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats"}, "model.google_ads_source.stg_google_ads__account_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__account_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_network_type": {"type": "STRING", "index": 3, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 4, "name": "device", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1047.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 19.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"}, "model.google_ads_source.stg_google_ads__keyword_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__keyword_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"keyword_id": {"type": "STRING", "index": 1, "name": "keyword_id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 3, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "INT64", "index": 5, "name": "criterion_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1485.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp"}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp"}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__campaign_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 4, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 5, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 6, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 7, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1465.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats"}, "model.google_ads_source.stg_google_ads__campaign_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__campaign_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 4, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 5, "name": "device", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1024.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__account_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp"}, "model.google_ads_source.stg_google_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1050.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_criterion_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"criterion_id": {"type": "INT64", "index": 1, "name": "criterion_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 7, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 8, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15249.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 261.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history"}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp"}, "model.google_ads_source.stg_google_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "currency_code": {"type": "STRING", "index": 3, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "INT64", "index": 5, "name": "time_zone", "comment": null}, "account_name": {"type": "INT64", "index": 6, "name": "account_name", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 23.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__keyword_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "INT64", "index": 3, "name": "ad_name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "ad_type": {"type": "INT64", "index": 5, "name": "ad_type", "comment": null}, "ad_status": {"type": "STRING", "index": 6, "name": "ad_status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "source_final_urls": {"type": "STRING", "index": 8, "name": "source_final_urls", "comment": null}, "final_urls": {"type": "STRING", "index": 9, "name": "final_urls", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}, "final_url": {"type": "STRING", "index": 11, "name": "final_url", "comment": null}, "base_url": {"type": "STRING", "index": 12, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 13, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 14, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 15, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 16, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 17, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 18, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 19, "name": "utm_term", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2076.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, "model.apple_search_ads.apple_search_ads__organization_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__organization_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "taps": {"type": "INT64", "index": 5, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 7, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 8, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, "model.apple_search_ads.apple_search_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 8, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}, "match_type": {"type": "STRING", "index": 10, "name": "match_type", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "keyword_status": {"type": "STRING", "index": 12, "name": "keyword_status", "comment": null}, "taps": {"type": "INT64", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 16, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15510.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 99.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, "model.apple_search_ads.apple_search_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 10, "name": "currency", "comment": null}, "ad_status": {"type": "STRING", "index": 11, "name": "ad_status", "comment": null}, "taps": {"type": "INT64", "index": 12, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 13, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 14, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 15, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "ad_group_status": {"type": "STRING", "index": 9, "name": "ad_group_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 10, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 11, "name": "end_at", "comment": null}, "taps": {"type": "INT64", "index": 12, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 13, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 14, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 15, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1925.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report"}, "model.apple_search_ads.apple_search_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "campaign_status": {"type": "STRING", "index": 7, "name": "campaign_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 8, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 9, "name": "end_at", "comment": null}, "taps": {"type": "INT64", "index": 10, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 11, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 12, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 13, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, "model.apple_search_ads.apple_search_ads__search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__search_term_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 8, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}, "search_term_text": {"type": "STRING", "index": 10, "name": "search_term_text", "comment": null}, "match_type": {"type": "STRING", "index": 11, "name": "match_type", "comment": null}, "currency": {"type": "STRING", "index": 12, "name": "currency", "comment": null}, "taps": {"type": "INT64", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 16, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report"}, "model.ad_reporting.ad_reporting__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "STRING", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 10, "name": "keyword_text", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 11, "name": "keyword_match_type", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24262.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 195.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, "model.ad_reporting.ad_reporting__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 27835.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 204.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, "model.ad_reporting.ad_reporting__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "base_url": {"type": "STRING", "index": 9, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 10, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 11, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 12, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 13, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 14, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 15, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 16, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 63373.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 414.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, "model.ad_reporting.ad_reporting__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 11080.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 156.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, "model.ad_reporting.ad_reporting__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "STRING", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 10, "name": "ad_name", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 86484.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 652.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, "model.ad_reporting.ad_reporting__search_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__search_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "STRING", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 10, "name": "keyword_text", "comment": null}, "search_query": {"type": "STRING", "index": 11, "name": "search_query", "comment": null}, "search_match_type": {"type": "STRING", "index": 12, "name": "search_match_type", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1494.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, "model.ad_reporting.ad_reporting__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 48664.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 468.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 8, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 793.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__search_term_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 4, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 10, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 154.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"modified_at": {"type": "TIMESTAMP", "index": 1, "name": "modified_at", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 4, "name": "keyword_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 5, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 6, "name": "bid_currency", "comment": null}, "match_type": {"type": "STRING", "index": 7, "name": "match_type", "comment": null}, "keyword_status": {"type": "STRING", "index": 8, "name": "keyword_status", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1151.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"modified_at": {"type": "TIMESTAMP", "index": 1, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 4, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 8, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 294.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__search_term_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 2, "name": "_fivetran_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 6, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 7, "name": "bid_currency", "comment": null}, "keyword_text": {"type": "STRING", "index": 8, "name": "keyword_text", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 9, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 10, "name": "keyword_id", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 12, "name": "currency", "comment": null}, "match_type": {"type": "STRING", "index": 13, "name": "match_type", "comment": null}, "search_term_source": {"type": "STRING", "index": 14, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 15, "name": "search_term_text", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 18, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 19, "name": "redownloads", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 25324.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 150.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "keyword_id": {"type": "INT64", "index": 2, "name": "keyword_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 8, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6039.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 99.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__organization", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"organization_id": {"type": "INT64", "index": 1, "name": "organization_id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "payment_model": {"type": "STRING", "index": 3, "name": "payment_model", "comment": null}, "organization_name": {"type": "STRING", "index": 4, "name": "organization_name", "comment": null}, "time_zone": {"type": "STRING", "index": 5, "name": "time_zone", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 80.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 8, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 732.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"created_at": {"type": "TIMESTAMP", "index": 1, "name": "created_at", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 2, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 6, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 7, "name": "ad_id", "comment": null}, "ad_status": {"type": "STRING", "index": 8, "name": "ad_status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 73.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__organization_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"modified_at": {"type": "TIMESTAMP", "index": 1, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 5, "name": "campaign_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 7, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 155.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__advertiser_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "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__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"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__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"keyword_id": {"type": "INT64", "index": 1, "name": "keyword_id", "comment": null}, "keyword_value": {"type": "STRING", "index": 2, "name": "keyword_value", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 3, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 7, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 8, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "match_type": {"type": "STRING", "index": 10, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 11, "name": "parent_type", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 809.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 790.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATETIME", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"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.pinterest_source.stg_pinterest_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 960.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 2, "name": "campaign_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "STRING", "index": 6, "name": "created_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 121.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6392.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "INT64", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "INT64", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "INT64", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "INT64", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "STRING", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "STRING", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "INT64", "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__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "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__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "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__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 5, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__advertiser_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_status": {"type": "STRING", "index": 3, "name": "advertiser_status", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_at": {"type": "DATETIME", "index": 7, "name": "created_at", "comment": null}, "currency_code": {"type": "STRING", "index": 8, "name": "currency_code", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "owner_user_id": {"type": "INT64", "index": 10, "name": "owner_user_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 11, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 93.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 2, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 3, "name": "ad_group_status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "created_at": {"type": "STRING", "index": 6, "name": "created_at", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "start_time": {"type": "STRING", "index": 8, "name": "start_time", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 608.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"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__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "keyword_id": {"type": "INT64", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 8, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3248.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 29.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__advertiser_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}}, "stats": {"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__pin_promotion_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"pin_promotion_id": {"type": "INT64", "index": 1, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "base_url": {"type": "STRING", "index": 5, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 6, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 7, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 8, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 9, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 10, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 11, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 12, "name": "utm_term", "comment": null}, "pin_name": {"type": "STRING", "index": 13, "name": "pin_name", "comment": null}, "pin_id": {"type": "INT64", "index": 14, "name": "pin_id", "comment": null}, "pin_status": {"type": "STRING", "index": 15, "name": "pin_status", "comment": null}, "creative_type": {"type": "STRING", "index": 16, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 17, "name": "_fivetran_synced", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 18, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4176.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 18.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "INT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "INT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "INT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "INT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "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__campaign_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__advertiser", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "address": {"type": "STRING", "index": 2, "name": "address", "comment": null}, "balance": {"type": "FLOAT64", "index": 3, "name": "balance", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "advertiser_name": {"type": "STRING", "index": 12, "name": "advertiser_name", "comment": null}, "phone_number": {"type": "STRING", "index": 13, "name": "phone_number", "comment": null}, "telephone": {"type": "INT64", "index": 14, "name": "telephone", "comment": null}, "timezone": {"type": "STRING", "index": 15, "name": "timezone", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 259.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "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__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "STRING", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "STRING", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "STRING", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "INT64", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "STRING", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 13, "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__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "STRING", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "INT64", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "INT64", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "INT64", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "STRING", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "STRING", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "INT64", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "INT64", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "INT64", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "BOOL", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "STRING", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "STRING", "index": 64, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "STRING", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "STRING", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "action_days": {"type": "INT64", "index": 5, "name": "action_days", "comment": null}, "action_categories": {"type": "STRING", "index": 6, "name": "action_categories", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "age": {"type": "STRING", "index": 8, "name": "age", "comment": null}, "audience_type": {"type": "INT64", "index": 9, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 10, "name": "budget", "comment": null}, "category": {"type": "INT64", "index": 11, "name": "category", "comment": null}, "display_name": {"type": "INT64", "index": 12, "name": "display_name", "comment": null}, "interest_category": {"type": "STRING", "index": 13, "name": "interest_category", "comment": null}, "frequency": {"type": "INT64", "index": 14, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 15, "name": "frequency_schedule", "comment": null}, "gender": {"type": "STRING", "index": 16, "name": "gender", "comment": null}, "languages": {"type": "STRING", "index": 17, "name": "languages", "comment": null}, "landing_page_url": {"type": "INT64", "index": 18, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 743.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "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_source.stg_tiktok_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "INT64", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "INT64", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "BOOL", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_name": {"type": "STRING", "index": 6, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 7, "name": "call_to_action", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 8, "name": "click_tracking_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 9, "name": "impression_tracking_url", "comment": null}, "base_url": {"type": "STRING", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 17, "name": "utm_term", "comment": null}, "landing_page_url": {"type": "STRING", "index": 18, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 632.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 5, "name": "campaign_type", "comment": null}, "split_test_variable": {"type": "INT64", "index": 6, "name": "split_test_variable", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 251.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__advertiser_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "INT64", "index": 14, "name": "reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "INT64", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "STRING", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "creative_id": {"type": "INT64", "index": 3, "name": "creative_id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 5, "name": "creative_name", "comment": null}, "page_link": {"type": "STRING", "index": 6, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 7, "name": "template_page_link", "comment": null}, "url_tags": {"type": "STRING", "index": 8, "name": "url_tags", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 9, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 10, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 11, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 12, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 13, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 14, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 15, "name": "template_app_link_spec_ios", "comment": null}, "template_app_link_spec_ipad": {"type": "STRING", "index": 16, "name": "template_app_link_spec_ipad", "comment": null}, "template_app_link_spec_android": {"type": "STRING", "index": 17, "name": "template_app_link_spec_android", "comment": null}, "template_app_link_spec_iphone": {"type": "STRING", "index": 18, "name": "template_app_link_spec_iphone", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1416996.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__ad_set_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"updated_at": {"type": "DATETIME", "index": 1, "name": "updated_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 2, "name": "created_at", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 7, "name": "end_at", "comment": null}, "status": {"type": "STRING", "index": 8, "name": "status", "comment": null}, "daily_budget": {"type": "INT64", "index": 9, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "INT64", "index": 10, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "FLOAT64", "index": 11, "name": "budget_remaining", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 459.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"updated_at": {"type": "DATETIME", "index": 1, "name": "updated_at", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 3, "name": "ad_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 5, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 7, "name": "creative_id", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 636.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__basic_ad_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__ad_set_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"updated_at": {"type": "DATETIME", "index": 1, "name": "updated_at", "comment": null}, "ad_set_id": {"type": "INT64", "index": 2, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 3, "name": "ad_set_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 7, "name": "end_at", "comment": null}, "bid_strategy": {"type": "STRING", "index": 8, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "INT64", "index": 9, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "INT64", "index": 10, "name": "budget_remaining", "comment": null}, "status": {"type": "STRING", "index": 11, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 826.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__basic_ad", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 2, "name": "ad_name", "comment": null}, "ad_set_name": {"type": "STRING", "index": 3, "name": "ad_set_name", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "frequency": {"type": "FLOAT64", "index": 10, "name": "frequency", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 480.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_status": {"type": "STRING", "index": 4, "name": "account_status", "comment": null}, "business_country_code": {"type": "STRING", "index": 5, "name": "business_country_code", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "timezone_name": {"type": "STRING", "index": 8, "name": "timezone_name", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3540.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 59.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "NUMERIC", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "NUMERIC", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "NUMERIC", "index": 5, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "NUMERIC", "index": 6, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "NUMERIC", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "NUMERIC", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "NUMERIC", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "NUMERIC", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "NUMERIC", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "NUMERIC", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "NUMERIC", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "NUMERIC", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "NUMERIC", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "NUMERIC", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 19, "name": "swipes", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84840.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__creative_url_tag_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "param_key": {"type": "STRING", "index": 2, "name": "param_key", "comment": null}, "param_value": {"type": "STRING", "index": 3, "name": "param_value", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 4, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 5, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35285.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 383.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}}, "stats": {"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__creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 2, "name": "created_at", "comment": null}, "ad_account_id": {"type": "STRING", "index": 3, "name": "ad_account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 4, "name": "creative_name", "comment": null}, "url": {"type": "STRING", "index": 5, "name": "url", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16898.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 119.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 5, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "FLOAT64", "index": 6, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "INT64", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "INT64", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "FLOAT64", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "INT64", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "FLOAT64", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 19, "name": "swipes", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1820.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "STRING", "index": 2, "name": "ad_squad_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 6, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 27132.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 228.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 6, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6902.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 58.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 2, "name": "ad_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 4, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 5, "name": "creative_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 50240.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 320.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_account_id": {"type": "STRING", "index": 1, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 2, "name": "ad_account_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "advertiser": {"type": "STRING", "index": 4, "name": "advertiser", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "timezone": {"type": "STRING", "index": 6, "name": "timezone", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 8, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8991.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 111.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 5, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "FLOAT64", "index": 6, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "INT64", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "INT64", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "FLOAT64", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "INT64", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "FLOAT64", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 19, "name": "swipes", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1820.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"}, "model.microsoft_ads.microsoft_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "ad_type": {"type": "STRING", "index": 10, "name": "ad_type", "comment": null}, "device_os": {"type": "STRING", "index": 11, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 12, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 13, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 14, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 48866.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 312.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, "model.microsoft_ads.microsoft_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 10, "name": "keyword_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 11, "name": "keyword_id", "comment": null}, "match_type": {"type": "STRING", "index": 12, "name": "match_type", "comment": null}, "device_os": {"type": "STRING", "index": 13, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 14, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 15, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 16, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6890.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 52.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, "model.microsoft_ads.microsoft_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "account_timezone": {"type": "STRING", "index": 4, "name": "account_timezone", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 8, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1138.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, "model.microsoft_ads.microsoft_ads__search_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__search_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 10, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 11, "name": "keyword_name", "comment": null}, "match_type": {"type": "STRING", "index": 12, "name": "match_type", "comment": null}, "search_query": {"type": "STRING", "index": 13, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 14, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 15, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 16, "name": "network", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1822.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, "model.microsoft_ads.microsoft_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "device_os": {"type": "STRING", "index": 10, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 11, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 12, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 13, "name": "currency_code", "comment": null}, "base_url": {"type": "STRING", "index": 14, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 15, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 16, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 17, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 18, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 19, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 20, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 21, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 23, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 24, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 59308.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 312.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, "model.microsoft_ads.microsoft_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_type": {"type": "STRING", "index": 6, "name": "campaign_type", "comment": null}, "campaign_timezone": {"type": "STRING", "index": 7, "name": "campaign_timezone", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "device_os": {"type": "STRING", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 11, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 12, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 269702.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1520.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 11, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 30486.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 182.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__line_item_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_timestamp": {"type": "STRING", "index": 9, "name": "created_timestamp", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "is_deleted": {"type": "BOOL", "index": 12, "name": "is_deleted", "comment": null}, "end_timestamp": {"type": "INT64", "index": 13, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "line_item_id": {"type": "STRING", "index": 15, "name": "line_item_id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_timestamp": {"type": "INT64", "index": 21, "name": "start_timestamp", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 24, "name": "updated_timestamp", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 25, "name": "bid_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 26, "name": "total_budget_amount", "comment": null}, "target_cpa": {"type": "FLOAT64", "index": 27, "name": "target_cpa", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 28, "name": "is_latest_version", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3082.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 3, "name": "promoted_tweet_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 342.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"approval_status": {"type": "STRING", "index": 1, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "STRING", "index": 2, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "BOOL", "index": 3, "name": "is_deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 4, "name": "entity_status", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 5, "name": "promoted_tweet_id", "comment": null}, "line_item_id": {"type": "STRING", "index": 6, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 7, "name": "tweet_id", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 8, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 9, "name": "is_latest_version", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1953.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 21.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__tweet_url", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"display_url": {"type": "STRING", "index": 1, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 2, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 3, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 4, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 5, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 6, "name": "url", "comment": null}, "base_url": {"type": "STRING", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 14, "name": "utm_term", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24366.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__tweet_url_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__line_item_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 336.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "created_timestamp": {"type": "STRING", "index": 2, "name": "created_timestamp", "comment": null}, "currency": {"type": "STRING", "index": 3, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 4, "name": "daily_budget_amount_local_micro", "comment": null}, "is_deleted": {"type": "BOOL", "index": 5, "name": "is_deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 6, "name": "duration_in_days", "comment": null}, "end_timestamp": {"type": "STRING", "index": 7, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "STRING", "index": 8, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 9, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 10, "name": "funding_instrument_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 11, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 12, "name": "campaign_name", "comment": null}, "is_servable": {"type": "BOOL", "index": 13, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "BOOL", "index": 14, "name": "is_standard_delivery", "comment": null}, "start_timestamp": {"type": "STRING", "index": 15, "name": "start_timestamp", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 16, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 17, "name": "updated_timestamp", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 18, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 19, "name": "total_budget_amount", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 20, "name": "is_latest_version", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2651.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__tweet", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 2, "name": "tweet_id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "full_text": {"type": "STRING", "index": 4, "name": "full_text", "comment": null}, "language": {"type": "STRING", "index": 5, "name": "language", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"approval_status": {"type": "STRING", "index": 1, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 2, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 3, "name": "business_name", "comment": null}, "created_timestamp": {"type": "STRING", "index": 4, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "BOOL", "index": 5, "name": "is_deleted", "comment": null}, "account_id": {"type": "STRING", "index": 6, "name": "account_id", "comment": null}, "industry_type": {"type": "INT64", "index": 7, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 9, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 10, "name": "timezone", "comment": null}, "timezone_switched_timestamp": {"type": "STRING", "index": 11, "name": "timezone_switched_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 12, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 13, "name": "is_latest_version", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 131.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__tweet_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__line_item_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__line_item_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"}, "model.linkedin.linkedin_ads__creative_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__creative_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 3, "name": "version_tag", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 6, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 7, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 8, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 9, "name": "account_name", "comment": null}, "type": {"type": "STRING", "index": 10, "name": "type", "comment": null}, "click_uri": {"type": "STRING", "index": 11, "name": "click_uri", "comment": null}, "creative_status": {"type": "STRING", "index": 12, "name": "creative_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 13, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "STRING", "index": 14, "name": "campaign_group_status", "comment": null}, "call_to_action_label_type": {"type": "STRING", "index": 15, "name": "call_to_action_label_type", "comment": null}, "currency": {"type": "STRING", "index": 16, "name": "currency", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 17, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 18, "name": "created_at", "comment": null}, "clicks": {"type": "INT64", "index": 19, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 21, "name": "cost", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9916.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, "model.linkedin.linkedin_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 9, "name": "created_at", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 12, "name": "cost", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1916.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__account_report"}, "model.linkedin.linkedin_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 5, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 6, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 7, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 8, "name": "account_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 9, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "STRING", "index": 10, "name": "campaign_group_status", "comment": null}, "type": {"type": "STRING", "index": 11, "name": "type", "comment": null}, "cost_type": {"type": "STRING", "index": 12, "name": "cost_type", "comment": null}, "creative_selection": {"type": "STRING", "index": 13, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 14, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "STRING", "index": 15, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "FLOAT64", "index": 16, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "STRING", "index": 17, "name": "unit_cost_currency_code", "comment": null}, "currency": {"type": "STRING", "index": 18, "name": "currency", "comment": null}, "format": {"type": "STRING", "index": 19, "name": "format", "comment": null}, "locale_country": {"type": "STRING", "index": 20, "name": "locale_country", "comment": null}, "locale_language": {"type": "STRING", "index": 21, "name": "locale_language", "comment": null}, "objective_type": {"type": "STRING", "index": 22, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "STRING", "index": 23, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "BOOL", "index": 24, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "BOOL", "index": 25, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 26, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 27, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 28, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 29, "name": "created_at", "comment": null}, "clicks": {"type": "INT64", "index": 30, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 31, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 32, "name": "cost", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3276.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__campaign_report"}, "model.linkedin.linkedin_ads__campaign_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__campaign_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 2, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 3, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "is_backfilled": {"type": "BOOL", "index": 8, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 9, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 10, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 11, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 12, "name": "created_at", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 15, "name": "cost", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2276.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report"}, "model.linkedin.linkedin_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "click_uri": {"type": "STRING", "index": 2, "name": "click_uri", "comment": null}, "base_url": {"type": "STRING", "index": 3, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 4, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 5, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 6, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 7, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 8, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 9, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 10, "name": "utm_term", "comment": null}, "creative_id": {"type": "INT64", "index": 11, "name": "creative_id", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 12, "name": "version_tag", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 14, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 15, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 16, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 17, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 18, "name": "account_name", "comment": null}, "currency": {"type": "STRING", "index": 19, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 22, "name": "cost", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 97.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__url_report"}}, "sources": {"source.microsoft_ads_source.microsoft_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 177.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history"}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_ad_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "INT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "INT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "INT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "INT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly"}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_campaign_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 58.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history"}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "STRING", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "STRING", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "STRING", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "INT64", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "STRING", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 13, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 703.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history"}, "source.google_ads_source.google_ads.ad_group_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4150.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_stats"}, "source.twitter_ads_source.twitter_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2971.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84840.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report"}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_ad_set_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 924.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history"}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 399720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_adgroup_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"}, "source.apple_search_ads_source.apple_search_ads.organization": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_organization_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 132.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.organization"}, "source.twitter_ads_source.twitter_ads.line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8084.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report"}, "source.google_ads_source.google_ads.ad_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1765.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_stats"}, "source.pinterest_source.pinterest_ads.advertiser_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_advertiser_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 100.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history"}, "source.facebook_ads_source.facebook_ads.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1415996.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.creative_history"}, "source.pinterest_source.pinterest_ads.keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "INT64", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "INT64", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "INT64", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "INT64", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "STRING", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "STRING", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "INT64", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 29.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_report"}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 101.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history"}, "source.twitter_ads_source.twitter_ads.tweet_url": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_tweet_url_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16671.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url"}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_campaign_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"}, "source.facebook_ads_source.facebook_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3481.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 59.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.account_history"}, "source.pinterest_source.pinterest_ads.ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2484.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report"}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_account_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1163.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"}, "source.google_ads_source.google_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 272.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_history"}, "source.pinterest_source.pinterest_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 120.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 55360.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 320.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history"}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "INT64", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "INT64", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "BOOL", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1072.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_promoted_tweet_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10500.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report"}, "source.linkedin_source.linkedin.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7263.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.creative_history"}, "source.facebook_ads_source.facebook_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_history"}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_criterion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15771.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 261.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history"}, "source.pinterest_source.pinterest_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1894.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_report"}, "source.twitter_ads_source.twitter_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 159.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.account_history"}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 940.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_squad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 30780.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 228.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history"}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18802.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 119.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history"}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1151.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history"}, "source.linkedin_source.linkedin.ad_analytics_by_creative": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_analytics_by_creative_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2968.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_creative"}, "source.pinterest_source.pinterest_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 799.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_history"}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_pin_promotion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3204.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 18.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history"}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1524.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report"}, "source.google_ads_source.google_ads.keyword_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_keyword_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4260.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.keyword_stats"}, "source.linkedin_source.linkedin.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 882.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.account_history"}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 334.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history"}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 419.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history"}, "source.facebook_ads_source.facebook_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 522.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history"}, "source.google_ads_source.google_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 713.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_history"}, "source.linkedin_source.linkedin.campaign_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_campaign_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 232.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.campaign_group_history"}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10767.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 111.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history"}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_pin_promotion_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATETIME", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9708.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report"}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1651.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_squad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_promoted_tweet_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2541.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 21.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history"}, "source.pinterest_source.pinterest_ads.advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_advertiser_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1344.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report"}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_creative_url_tag_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 41413.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 383.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"}, "source.google_ads_source.google_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 66.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_history"}, "source.google_ads_source.google_ads.campaign_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_campaign_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3590.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_stats"}, "source.google_ads_source.google_ads.account_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_account_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3500.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 19.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_stats"}, "source.linkedin_source.linkedin.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.campaign_history"}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_search_term_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35485.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 150.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report"}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 658.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history"}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 38470.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 229.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_search_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2126.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"}, "source.twitter_ads_source.twitter_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8091.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report"}, "source.twitter_ads_source.twitter_ads.line_item_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2973.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history"}, "source.google_ads_source.google_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1040.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_history"}, "source.pinterest_source.pinterest_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 604.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history"}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12573.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 99.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report"}, "source.facebook_ads_source.facebook_ads.basic_ad": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_basic_ad_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 480.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad"}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 68992.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 401.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"}, "source.linkedin_source.linkedin.ad_analytics_by_campaign": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_analytics_by_campaign_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "DATETIME", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7252.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_campaign"}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1125.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history"}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 170.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report"}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 595.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history"}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_advertiser_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "INT64", "index": 14, "name": "reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "INT64", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "STRING", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 439.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser"}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9602.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 53.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"}, "source.twitter_ads_source.twitter_ads.tweet": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_tweet_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1312.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet"}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_adgroup_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "STRING", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "INT64", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "INT64", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "INT64", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "STRING", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "STRING", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "INT64", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "INT64", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "INT64", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "BOOL", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "STRING", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "STRING", "index": 64, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "STRING", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "STRING", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2527.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2022-11-08T22:18:28.496652Z", "invocation_id": "bdca839e-605b-42f7-a59a-9356b4dce839", "env": {}}, "nodes": {"seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2971.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 58.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_campaign_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 229.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 38470.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_search_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2126.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 401.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 68992.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 177.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data"}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_search_term_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 150.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35485.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7263.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2973.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data"}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_advertiser_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "INT64", "index": 14, "name": "reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "INT64", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "STRING", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 439.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4150.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_ad_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "INT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "INT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "INT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "INT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data"}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1415996.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "INT64", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "INT64", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "INT64", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "INT64", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "STRING", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "STRING", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "INT64", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 29.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 399720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_adgroup_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 170.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 595.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1524.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data"}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_keyword_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4260.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 101.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_tweet_url_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16671.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data"}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 159.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8091.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_promoted_tweet_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10500.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_adgroup_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "STRING", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "INT64", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "INT64", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "INT64", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "STRING", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "STRING", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "INT64", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "INT64", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "INT64", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "BOOL", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "STRING", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "STRING", "index": 64, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "STRING", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "STRING", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2527.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data"}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_organization_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 132.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8084.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_campaign_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3590.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 53.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9602.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_tweet_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1312.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1765.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data"}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_account_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}, "engagements": {"type": "INT64", "index": 5, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 6, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 8, "name": "likes", "comment": null}, "replies": {"type": "INT64", "index": 9, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 10, "name": "retweets", "comment": null}, "unfollows": {"type": "INT64", "index": 11, "name": "unfollows", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 472.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data"}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 522.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_criterion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 261.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15771.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_creative_url_tag_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 383.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 41413.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_campaign_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_analytics_by_creative_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2968.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 882.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 940.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_squad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 228.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 30780.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 119.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18802.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 120.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 320.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 55360.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "INT64", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "INT64", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "BOOL", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1072.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 799.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_pin_promotion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 18.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3204.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 272.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 59.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3481.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2484.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_account_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1163.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_pin_promotion_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATETIME", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9708.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_advertiser_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 100.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1651.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data"}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 66.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "STRING", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "STRING", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "STRING", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "INT64", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "STRING", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 13, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 703.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1151.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 99.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12573.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1894.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_ad_set_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 924.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data"}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_account_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3500.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_advertiser_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1344.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 334.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 419.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_keywords_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "segment": {"type": "STRING", "index": 5, "name": "segment", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 7, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 8, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 9, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 10, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 11, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 13, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 16, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 17, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 18, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 21, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 22, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 25, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 27, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 30, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 31, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 32, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 35, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 37, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 40, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 50, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 51, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 54, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 56, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 59, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 60, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 61, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 62, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 63, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 64, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 65, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 70, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 80, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 85, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 90, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 94, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 99, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 100, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 101, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 106, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 107, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 108, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 111, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 112, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 165, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 167, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 170, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 171, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 172, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 175, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 176, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 177, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 180, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 181, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 182, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 183, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 184, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 210, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 211, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 212, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 213, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 214, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 229, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 230, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 231, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 232, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 233, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 234, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 235, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 236, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 237, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 238, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 239, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 240, "name": "url_clicks", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 241, "name": "video_15_s_views", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 242, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 243, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 244, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 245, "name": "video_cta_clicks", "comment": null}, "video_total_views": {"type": "INT64", "index": 246, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 247, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 248, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 249, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 250, "name": "video_views_75", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8100.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84840.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1040.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 604.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 713.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_campaign_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 232.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 111.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10767.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 658.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_analytics_by_campaign_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "DATETIME", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7252.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1125.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_squad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_promoted_tweet_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 21.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2541.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_basic_ad_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 480.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 2, "name": "ad_group_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_at": {"type": "DATETIME", "index": 4, "name": "modified_at", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 668.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "modified_at": {"type": "DATETIME", "index": 3, "name": "modified_at", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 180.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"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__ad_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 401.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 68992.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 229.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 38470.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 2, "name": "ad_name", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 5, "name": "modified_at", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1135.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 399720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 53.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9602.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__search_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2126.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"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__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__search_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"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.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"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_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"keyword_id": {"type": "INT64", "index": 1, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 2, "name": "keyword_name", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 3, "name": "modified_at", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 605.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 2, "name": "campaign_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_at": {"type": "DATETIME", "index": 4, "name": "modified_at", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 950.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "name": "stg_microsoft_ads__account_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1163.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.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_v1_microsoft_ads_source", "name": "stg_microsoft_ads__account_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"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.tiktok_ads.tiktok_ads__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 8, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 9, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 10, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 12, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 13, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 14, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 15, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 16, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 17, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 18, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 19, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 20, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 21, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 22, "name": "daily_ctr", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 638.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, "model.tiktok_ads.tiktok_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 10, "name": "currency", "comment": null}, "category": {"type": "INT64", "index": 11, "name": "category", "comment": null}, "action_categories": {"type": "STRING", "index": 12, "name": "action_categories", "comment": null}, "gender": {"type": "STRING", "index": 13, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 14, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 15, "name": "budget", "comment": null}, "age": {"type": "STRING", "index": 16, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 17, "name": "languages", "comment": null}, "interest_category": {"type": "STRING", "index": 18, "name": "interest_category", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 21, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 22, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 23, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 24, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 25, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 26, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 27, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 28, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 29, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 30, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 31, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 32, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 33, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 34, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 35, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 36, "name": "daily_ctr", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1479.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, "model.tiktok_ads.tiktok_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "base_url": {"type": "STRING", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 17, "name": "utm_term", "comment": null}, "currency": {"type": "STRING", "index": 18, "name": "currency", "comment": null}, "action_categories": {"type": "STRING", "index": 19, "name": "action_categories", "comment": null}, "category": {"type": "INT64", "index": 20, "name": "category", "comment": null}, "gender": {"type": "STRING", "index": 21, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 22, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 23, "name": "budget", "comment": null}, "age": {"type": "STRING", "index": 24, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 25, "name": "languages", "comment": null}, "interest_category": {"type": "STRING", "index": 26, "name": "interest_category", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 28, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 29, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 30, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 31, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 32, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 33, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 34, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 35, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 36, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 37, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 38, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 39, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 40, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 41, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 42, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 43, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 44, "name": "daily_ctr", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1726.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "action_categories": {"type": "STRING", "index": 9, "name": "action_categories", "comment": null}, "category": {"type": "INT64", "index": 10, "name": "category", "comment": null}, "gender": {"type": "STRING", "index": 11, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 12, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 13, "name": "budget", "comment": null}, "age": {"type": "STRING", "index": 14, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 15, "name": "languages", "comment": null}, "interest_category": {"type": "STRING", "index": 16, "name": "interest_category", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 20, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 21, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 22, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 23, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 24, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 25, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 26, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 27, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 28, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 29, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 30, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 31, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 32, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 33, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 34, "name": "daily_ctr", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1259.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, "model.tiktok_ads.tiktok_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "name": "tiktok_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 11, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 12, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 13, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 14, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 15, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 16, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 17, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 18, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 19, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 20, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 21, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 22, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 23, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 24, "name": "daily_ctr", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 741.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, "model.twitter_ads.twitter_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 8, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 9, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 10, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "INT64", "index": 11, "name": "tweet_name", "comment": null}, "tweet_full_text": {"type": "STRING", "index": 12, "name": "tweet_full_text", "comment": null}, "base_url": {"type": "STRING", "index": 13, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 14, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 15, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 16, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 17, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 18, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 19, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 20, "name": "utm_term", "comment": null}, "expanded_url": {"type": "STRING", "index": 21, "name": "expanded_url", "comment": null}, "display_url": {"type": "STRING", "index": 22, "name": "display_url", "comment": null}, "currency": {"type": "STRING", "index": 23, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 24, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 26, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 27, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 28, "name": "url_clicks", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 72.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 19406.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__url_report"}, "model.twitter_ads.twitter_ads__line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__line_item_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 8, "name": "line_item_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 9, "name": "is_deleted", "comment": null}, "line_item_status": {"type": "STRING", "index": 10, "name": "line_item_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "currency": {"type": "STRING", "index": 12, "name": "currency", "comment": null}, "advertiser_domain": {"type": "STRING", "index": 13, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 14, "name": "advertiser_user_id", "comment": null}, "bid_type": {"type": "STRING", "index": 15, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 16, "name": "bid_unit", "comment": null}, "charge_by": {"type": "STRING", "index": 17, "name": "charge_by", "comment": null}, "objective": {"type": "STRING", "index": 18, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 19, "name": "optimization", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 21, "name": "primary_web_event_tag", "comment": null}, "creative_source": {"type": "STRING", "index": 22, "name": "creative_source", "comment": null}, "start_timestamp": {"type": "INT64", "index": 23, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "INT64", "index": 24, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "STRING", "index": 25, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 26, "name": "updated_timestamp", "comment": null}, "target_cpa": {"type": "FLOAT64", "index": 27, "name": "target_cpa", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 28, "name": "total_budget_amount", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 29, "name": "bid_amount", "comment": null}, "clicks": {"type": "INT64", "index": 30, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 31, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 32, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 33, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 34, "name": "url_clicks", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1141.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, "model.twitter_ads.twitter_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 5, "name": "is_deleted", "comment": null}, "timezone": {"type": "STRING", "index": 6, "name": "timezone", "comment": null}, "industry_type": {"type": "INT64", "index": 7, "name": "industry_type", "comment": null}, "approval_status": {"type": "STRING", "index": 8, "name": "approval_status", "comment": null}, "business_name": {"type": "INT64", "index": 9, "name": "business_name", "comment": null}, "business_id": {"type": "INT64", "index": 10, "name": "business_id", "comment": null}, "created_timestamp": {"type": "STRING", "index": 11, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 12, "name": "updated_timestamp", "comment": null}, "timezone_switched_timestamp": {"type": "STRING", "index": 13, "name": "timezone_switched_timestamp", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 17, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 18, "name": "url_clicks", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 85.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16745.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, "model.twitter_ads.twitter_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 7, "name": "is_deleted", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "currency": {"type": "STRING", "index": 9, "name": "currency", "comment": null}, "is_servable": {"type": "BOOL", "index": 10, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "BOOL", "index": 11, "name": "is_standard_delivery", "comment": null}, "frequency_cap": {"type": "INT64", "index": 12, "name": "frequency_cap", "comment": null}, "start_timestamp": {"type": "STRING", "index": 13, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "STRING", "index": 14, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "STRING", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 16, "name": "updated_timestamp", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 17, "name": "funding_instrument_id", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 18, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 19, "name": "total_budget_amount", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 22, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 23, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 24, "name": "url_clicks", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 382.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "name": "twitter_ads__promoted_tweet_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 8, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 9, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 10, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "INT64", "index": 11, "name": "tweet_name", "comment": null}, "full_text": {"type": "STRING", "index": 12, "name": "full_text", "comment": null}, "is_deleted": {"type": "BOOL", "index": 13, "name": "is_deleted", "comment": null}, "promoted_tweet_status": {"type": "STRING", "index": 14, "name": "promoted_tweet_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 15, "name": "campaign_status", "comment": null}, "line_item_status": {"type": "STRING", "index": 16, "name": "line_item_status", "comment": null}, "language": {"type": "STRING", "index": 17, "name": "language", "comment": null}, "currency": {"type": "STRING", "index": 18, "name": "currency", "comment": null}, "approval_status": {"type": "STRING", "index": 19, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "STRING", "index": 20, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 21, "name": "updated_timestamp", "comment": null}, "clicks": {"type": "INT64", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 23, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 24, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 25, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 26, "name": "url_clicks", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 26200.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, "model.pinterest.pinterest_ads__pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 9, "name": "ad_group_status", "comment": null}, "creative_type": {"type": "STRING", "index": 10, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 11, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "STRING", "index": 12, "name": "pin_name", "comment": null}, "pin_status": {"type": "STRING", "index": 13, "name": "pin_status", "comment": null}, "destination_url": {"type": "STRING", "index": 14, "name": "destination_url", "comment": null}, "base_url": {"type": "STRING", "index": 15, "name": "base_url", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 26592.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, "model.pinterest.pinterest_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 8, "name": "keyword_id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "keyword_value": {"type": "STRING", "index": 11, "name": "keyword_value", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 29.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1854.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, "model.pinterest.pinterest_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 9, "name": "ad_group_status", "comment": null}, "destination_url": {"type": "STRING", "index": 10, "name": "destination_url", "comment": null}, "creative_type": {"type": "STRING", "index": 11, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 12, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "STRING", "index": 13, "name": "pin_name", "comment": null}, "pin_status": {"type": "STRING", "index": 14, "name": "pin_status", "comment": null}, "base_url": {"type": "STRING", "index": 15, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 16, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 17, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 18, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 19, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 20, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 21, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 22, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 23, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 24, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 25, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 29292.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__url_report"}, "model.pinterest.pinterest_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 5, "name": "campaign_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 8, "name": "ad_group_id", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "start_time": {"type": "STRING", "index": 10, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 11, "name": "end_time", "comment": null}, "ad_group_status": {"type": "STRING", "index": 12, "name": "ad_group_status", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, "model.pinterest.pinterest_ads__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_status": {"type": "STRING", "index": 4, "name": "advertiser_status", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "billing_type": {"type": "STRING", "index": 7, "name": "billing_type", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 930.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, "model.pinterest.pinterest_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest", "name": "pinterest_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, "model.google_ads.google_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "INT64", "index": 8, "name": "criterion_id", "comment": null}, "type": {"type": "STRING", "index": 9, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 11, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 12, "name": "keyword_text", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1710.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__keyword_report"}, "model.google_ads.google_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "INT64", "index": 9, "name": "ad_name", "comment": null}, "ad_status": {"type": "STRING", "index": 10, "name": "ad_status", "comment": null}, "ad_type": {"type": "INT64", "index": 11, "name": "ad_type", "comment": null}, "display_url": {"type": "INT64", "index": 12, "name": "display_url", "comment": null}, "source_final_urls": {"type": "STRING", "index": 13, "name": "source_final_urls", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1170.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_report"}, "model.google_ads.google_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 5, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "INT64", "index": 6, "name": "time_zone", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 690.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__account_report"}, "model.google_ads.google_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "STRING", "index": 8, "name": "ad_group_status", "comment": null}, "ad_group_type": {"type": "STRING", "index": 9, "name": "ad_group_type", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1455.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_group_report"}, "model.google_ads.google_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 6, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 7, "name": "advertising_channel_subtype", "comment": null}, "status": {"type": "STRING", "index": 8, "name": "status", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1648.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__campaign_report"}, "model.google_ads.google_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads", "name": "google_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "base_url": {"type": "STRING", "index": 9, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 10, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 11, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 12, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 13, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 14, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 15, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 16, "name": "utm_term", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1000.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__url_report"}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "DATETIME", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 6, "name": "click_uri", "comment": null}, "call_to_action_label_type": {"type": "STRING", "index": 7, "name": "call_to_action_label_type", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 9, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 10, "name": "is_latest_version", "comment": null}, "base_url": {"type": "STRING", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 18, "name": "utm_term", "comment": null}}, "stats": {"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__ad_analytics_by_creative_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "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": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_group_id": {"type": "INT64", "index": 1, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 2, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "is_backfilled": {"type": "BOOL", "index": 5, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 6, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 7, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 9, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 10, "name": "is_latest_version", "comment": null}}, "stats": {"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__ad_analytics_by_creative": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_creative", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 5, "name": "cost", "comment": null}}, "stats": {"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__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 2, "name": "campaign_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 3, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}, "cost_type": {"type": "STRING", "index": 8, "name": "cost_type", "comment": null}, "creative_selection": {"type": "STRING", "index": 9, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 10, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "STRING", "index": 11, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "FLOAT64", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "STRING", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "format": {"type": "STRING", "index": 14, "name": "format", "comment": null}, "locale_country": {"type": "STRING", "index": 15, "name": "locale_country", "comment": null}, "locale_language": {"type": "STRING", "index": 16, "name": "locale_language", "comment": null}, "objective_type": {"type": "STRING", "index": 17, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "STRING", "index": 18, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "BOOL", "index": 19, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "BOOL", "index": 20, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 21, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 22, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 23, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 24, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 25, "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__ad_analytics_by_campaign": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 5, "name": "cost", "comment": null}}, "stats": {"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__account_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "name": "stg_linkedin_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "currency": {"type": "STRING", "index": 3, "name": "currency", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 7, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 8, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 9, "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.facebook_ads.int_facebook_ads__creative_history": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "int_facebook_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 4, "name": "creative_name", "comment": null}, "url": {"type": "STRING", "index": 5, "name": "url", "comment": null}, "base_url": {"type": "STRING", "index": 6, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 7, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 8, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 9, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 10, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 11, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 12, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 13, "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.facebook_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 7, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1460.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, "model.facebook_ads.facebook_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 7, "name": "end_at", "comment": null}, "status": {"type": "STRING", "index": 8, "name": "status", "comment": null}, "daily_budget": {"type": "INT64", "index": 9, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "INT64", "index": 10, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "FLOAT64", "index": 11, "name": "budget_remaining", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1000.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, "model.facebook_ads.facebook_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 7, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "creative_id": {"type": "INT64", "index": 10, "name": "creative_id", "comment": null}, "creative_name": {"type": "STRING", "index": 11, "name": "creative_name", "comment": null}, "base_url": {"type": "STRING", "index": 12, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 13, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 14, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 15, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 16, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 17, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 18, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 19, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 22, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, "model.facebook_ads.facebook_ads__ad_set_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__ad_set_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 7, "name": "ad_set_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 8, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 9, "name": "end_at", "comment": null}, "bid_strategy": {"type": "STRING", "index": 10, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "INT64", "index": 11, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "INT64", "index": 12, "name": "budget_remaining", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1340.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, "model.facebook_ads.facebook_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_status": {"type": "STRING", "index": 4, "name": "account_status", "comment": null}, "business_country_code": {"type": "STRING", "index": 5, "name": "business_country_code", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "timezone_name": {"type": "STRING", "index": 8, "name": "timezone_name", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 594.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, "model.facebook_ads.facebook_ads__url_tags": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "name": "facebook_ads__url_tags", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 3, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 4, "name": "value", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 220.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13970.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, "model.snapchat_ads.snapchat_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "STRING", "index": 4, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 5, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 7, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 70.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, "model.snapchat_ads.snapchat_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 7, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 70.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__ad_squad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 6, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "STRING", "index": 7, "name": "ad_squad_name", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 9, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 140.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, "model.snapchat_ads.snapchat_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 416.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, "model.snapchat_ads.snapchat_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "name": "snapchat_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "STRING", "index": 4, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 5, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "base_url": {"type": "STRING", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 14, "name": "utm_term", "comment": null}, "swipes": {"type": "INT64", "index": 15, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 70.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 21852.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, "model.google_ads_source.stg_google_ads__campaign_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__campaign_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 4, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 5, "name": "device", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1024.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}}, "stats": {"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__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp"}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "ad_group_type": {"type": "STRING", "index": 3, "name": "ad_group_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 7, "name": "ad_group_status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 290.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history"}, "model.google_ads_source.stg_google_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1050.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__campaign_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp"}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__account_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp"}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__keyword_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "INT64", "index": 3, "name": "ad_name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "ad_type": {"type": "INT64", "index": 5, "name": "ad_type", "comment": null}, "ad_status": {"type": "STRING", "index": 6, "name": "ad_status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "source_final_urls": {"type": "STRING", "index": 8, "name": "source_final_urls", "comment": null}, "final_urls": {"type": "STRING", "index": 9, "name": "final_urls", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}, "final_url": {"type": "STRING", "index": 11, "name": "final_url", "comment": null}, "base_url": {"type": "STRING", "index": 12, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 13, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 14, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 15, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 16, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 17, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 18, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 19, "name": "utm_term", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2076.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, "model.google_ads_source.stg_google_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "currency_code": {"type": "STRING", "index": 3, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "INT64", "index": 5, "name": "time_zone", "comment": null}, "account_name": {"type": "INT64", "index": 6, "name": "account_name", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 23.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "device": {"type": "STRING", "index": 5, "name": "device", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1165.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_criterion_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"}, "model.google_ads_source.stg_google_ads__account_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__account_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_network_type": {"type": "STRING", "index": 3, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 4, "name": "device", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1047.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, "model.google_ads_source.stg_google_ads__ad_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 4, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 5, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 6, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 7, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1465.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats"}, "model.google_ads_source.stg_google_ads__keyword_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__keyword_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"keyword_id": {"type": "STRING", "index": 1, "name": "keyword_id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 3, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "INT64", "index": 5, "name": "criterion_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1485.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "name": "stg_google_ads__ad_group_criterion_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"criterion_id": {"type": "INT64", "index": 1, "name": "criterion_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 7, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 8, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 261.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15249.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history"}, "model.apple_search_ads.apple_search_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "campaign_status": {"type": "STRING", "index": 7, "name": "campaign_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 8, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 9, "name": "end_at", "comment": null}, "taps": {"type": "INT64", "index": 10, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 11, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 12, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 13, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, "model.apple_search_ads.apple_search_ads__organization_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__organization_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "taps": {"type": "INT64", "index": 5, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 7, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 8, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, "model.apple_search_ads.apple_search_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 8, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}, "match_type": {"type": "STRING", "index": 10, "name": "match_type", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "keyword_status": {"type": "STRING", "index": 12, "name": "keyword_status", "comment": null}, "taps": {"type": "INT64", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 16, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 99.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15510.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, "model.apple_search_ads.apple_search_ads__search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__search_term_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 8, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}, "search_term_text": {"type": "STRING", "index": 10, "name": "search_term_text", "comment": null}, "match_type": {"type": "STRING", "index": 11, "name": "match_type", "comment": null}, "currency": {"type": "STRING", "index": 12, "name": "currency", "comment": null}, "taps": {"type": "INT64", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 16, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report"}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "ad_group_status": {"type": "STRING", "index": 9, "name": "ad_group_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 10, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 11, "name": "end_at", "comment": null}, "taps": {"type": "INT64", "index": 12, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 13, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 14, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 15, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1925.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report"}, "model.apple_search_ads.apple_search_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "name": "apple_search_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 10, "name": "currency", "comment": null}, "ad_status": {"type": "STRING", "index": 11, "name": "ad_status", "comment": null}, "taps": {"type": "INT64", "index": 12, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 13, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 14, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 15, "name": "total_downloads", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, "model.ad_reporting.ad_reporting__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 156.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 11080.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, "model.ad_reporting.ad_reporting__search_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__search_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "STRING", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 10, "name": "keyword_text", "comment": null}, "search_query": {"type": "STRING", "index": 11, "name": "search_query", "comment": null}, "search_match_type": {"type": "STRING", "index": 12, "name": "search_match_type", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1494.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, "model.ad_reporting.ad_reporting__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "base_url": {"type": "STRING", "index": 9, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 10, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 11, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 12, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 13, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 14, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 15, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 16, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 414.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 63373.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, "model.ad_reporting.ad_reporting__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 204.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 27835.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, "model.ad_reporting.ad_reporting__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "STRING", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 10, "name": "keyword_text", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 11, "name": "keyword_match_type", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 195.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24262.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, "model.ad_reporting.ad_reporting__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "STRING", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 10, "name": "ad_name", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 652.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 86484.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, "model.ad_reporting.ad_reporting__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "name": "ad_reporting__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 468.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 48664.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"created_at": {"type": "TIMESTAMP", "index": 1, "name": "created_at", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 2, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 6, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 7, "name": "ad_id", "comment": null}, "ad_status": {"type": "STRING", "index": 8, "name": "ad_status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 73.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 4, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 10, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 154.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report"}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__organization_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__organization", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"organization_id": {"type": "INT64", "index": 1, "name": "organization_id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "payment_model": {"type": "STRING", "index": 3, "name": "payment_model", "comment": null}, "organization_name": {"type": "STRING", "index": 4, "name": "organization_name", "comment": null}, "time_zone": {"type": "STRING", "index": 5, "name": "time_zone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 80.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 8, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 793.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "keyword_id": {"type": "INT64", "index": 2, "name": "keyword_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 8, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 99.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6039.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"modified_at": {"type": "TIMESTAMP", "index": 1, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 5, "name": "campaign_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 7, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 155.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"modified_at": {"type": "TIMESTAMP", "index": 1, "name": "modified_at", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 4, "name": "keyword_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 5, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 6, "name": "bid_currency", "comment": null}, "match_type": {"type": "STRING", "index": 7, "name": "match_type", "comment": null}, "keyword_status": {"type": "STRING", "index": 8, "name": "keyword_status", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1151.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"modified_at": {"type": "TIMESTAMP", "index": 1, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 4, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 8, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 294.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__search_term_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__search_term_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 2, "name": "_fivetran_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 6, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 7, "name": "bid_currency", "comment": null}, "keyword_text": {"type": "STRING", "index": 8, "name": "keyword_text", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 9, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 10, "name": "keyword_id", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 12, "name": "currency", "comment": null}, "match_type": {"type": "STRING", "index": 13, "name": "match_type", "comment": null}, "search_term_source": {"type": "STRING", "index": 14, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 15, "name": "search_term_text", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 18, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 19, "name": "redownloads", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 150.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 25324.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 8, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 732.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "INT64", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "INT64", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "INT64", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "INT64", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "STRING", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "STRING", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "INT64", "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_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"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__advertiser_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__advertiser_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_status": {"type": "STRING", "index": 3, "name": "advertiser_status", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_at": {"type": "DATETIME", "index": 7, "name": "created_at", "comment": null}, "currency_code": {"type": "STRING", "index": 8, "name": "currency_code", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "owner_user_id": {"type": "INT64", "index": 10, "name": "owner_user_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 11, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 93.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 2, "name": "campaign_name", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "STRING", "index": 6, "name": "created_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 121.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "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__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 960.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "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__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 2, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 3, "name": "ad_group_status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "created_at": {"type": "STRING", "index": 6, "name": "created_at", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "start_time": {"type": "STRING", "index": 8, "name": "start_time", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 608.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 5, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__advertiser_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "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_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 790.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATETIME", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"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.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6392.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__advertiser_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}}, "stats": {"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__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"keyword_id": {"type": "INT64", "index": 1, "name": "keyword_id", "comment": null}, "keyword_value": {"type": "STRING", "index": 2, "name": "keyword_value", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 3, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 7, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 8, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "match_type": {"type": "STRING", "index": 10, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 11, "name": "parent_type", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 809.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"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__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"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__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "keyword_id": {"type": "INT64", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 8, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 29.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3248.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"pin_promotion_id": {"type": "INT64", "index": 1, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "base_url": {"type": "STRING", "index": 5, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 6, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 7, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 8, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 9, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 10, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 11, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 12, "name": "utm_term", "comment": null}, "pin_name": {"type": "STRING", "index": 13, "name": "pin_name", "comment": null}, "pin_id": {"type": "INT64", "index": 14, "name": "pin_id", "comment": null}, "pin_status": {"type": "STRING", "index": 15, "name": "pin_status", "comment": null}, "creative_type": {"type": "STRING", "index": 16, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 17, "name": "_fivetran_synced", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 18, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 18.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4176.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "STRING", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "STRING", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "STRING", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "INT64", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "STRING", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 13, "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__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "STRING", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "INT64", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "INT64", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "INT64", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "STRING", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "STRING", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "INT64", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "INT64", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "INT64", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "BOOL", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "STRING", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "STRING", "index": 64, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "STRING", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "STRING", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "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_source.stg_tiktok_ads__advertiser_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__advertiser_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "INT64", "index": 14, "name": "reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "INT64", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "STRING", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "INT64", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "INT64", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "BOOL", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "action_days": {"type": "INT64", "index": 5, "name": "action_days", "comment": null}, "action_categories": {"type": "STRING", "index": 6, "name": "action_categories", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "age": {"type": "STRING", "index": 8, "name": "age", "comment": null}, "audience_type": {"type": "INT64", "index": 9, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 10, "name": "budget", "comment": null}, "category": {"type": "INT64", "index": 11, "name": "category", "comment": null}, "display_name": {"type": "INT64", "index": 12, "name": "display_name", "comment": null}, "interest_category": {"type": "STRING", "index": 13, "name": "interest_category", "comment": null}, "frequency": {"type": "INT64", "index": 14, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 15, "name": "frequency_schedule", "comment": null}, "gender": {"type": "STRING", "index": 16, "name": "gender", "comment": null}, "languages": {"type": "STRING", "index": 17, "name": "languages", "comment": null}, "landing_page_url": {"type": "INT64", "index": 18, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 743.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_name": {"type": "STRING", "index": 6, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 7, "name": "call_to_action", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 8, "name": "click_tracking_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 9, "name": "impression_tracking_url", "comment": null}, "base_url": {"type": "STRING", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 17, "name": "utm_term", "comment": null}, "landing_page_url": {"type": "STRING", "index": 18, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 632.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "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__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 5, "name": "campaign_type", "comment": null}, "split_test_variable": {"type": "INT64", "index": 6, "name": "split_test_variable", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 251.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__advertiser", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "address": {"type": "STRING", "index": 2, "name": "address", "comment": null}, "balance": {"type": "FLOAT64", "index": 3, "name": "balance", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "advertiser_name": {"type": "STRING", "index": 12, "name": "advertiser_name", "comment": null}, "phone_number": {"type": "STRING", "index": 13, "name": "phone_number", "comment": null}, "telephone": {"type": "INT64", "index": 14, "name": "telephone", "comment": null}, "timezone": {"type": "STRING", "index": 15, "name": "timezone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 259.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "INT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "INT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "INT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "INT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "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__campaign_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__ad_set_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"updated_at": {"type": "DATETIME", "index": 1, "name": "updated_at", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 3, "name": "ad_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 5, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 7, "name": "creative_id", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 636.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"updated_at": {"type": "DATETIME", "index": 1, "name": "updated_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 2, "name": "created_at", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 7, "name": "end_at", "comment": null}, "status": {"type": "STRING", "index": 8, "name": "status", "comment": null}, "daily_budget": {"type": "INT64", "index": 9, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "INT64", "index": 10, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "FLOAT64", "index": 11, "name": "budget_remaining", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 459.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__basic_ad", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 2, "name": "ad_name", "comment": null}, "ad_set_name": {"type": "STRING", "index": 3, "name": "ad_set_name", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "frequency": {"type": "FLOAT64", "index": 10, "name": "frequency", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 480.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "creative_id": {"type": "INT64", "index": 3, "name": "creative_id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 5, "name": "creative_name", "comment": null}, "page_link": {"type": "STRING", "index": 6, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 7, "name": "template_page_link", "comment": null}, "url_tags": {"type": "STRING", "index": 8, "name": "url_tags", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 9, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 10, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 11, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 12, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 13, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 14, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 15, "name": "template_app_link_spec_ios", "comment": null}, "template_app_link_spec_ipad": {"type": "STRING", "index": 16, "name": "template_app_link_spec_ipad", "comment": null}, "template_app_link_spec_android": {"type": "STRING", "index": 17, "name": "template_app_link_spec_android", "comment": null}, "template_app_link_spec_iphone": {"type": "STRING", "index": 18, "name": "template_app_link_spec_iphone", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1416996.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__basic_ad_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__ad_set_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"updated_at": {"type": "DATETIME", "index": 1, "name": "updated_at", "comment": null}, "ad_set_id": {"type": "INT64", "index": 2, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 3, "name": "ad_set_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 7, "name": "end_at", "comment": null}, "bid_strategy": {"type": "STRING", "index": 8, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "INT64", "index": 9, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "INT64", "index": 10, "name": "budget_remaining", "comment": null}, "status": {"type": "STRING", "index": 11, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 826.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_status": {"type": "STRING", "index": 4, "name": "account_status", "comment": null}, "business_country_code": {"type": "STRING", "index": 5, "name": "business_country_code", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "timezone_name": {"type": "STRING", "index": 8, "name": "timezone_name", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 59.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3540.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "name": "stg_facebook_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "STRING", "index": 2, "name": "ad_squad_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 6, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 228.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 27132.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 2, "name": "ad_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 4, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 5, "name": "creative_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 320.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 50240.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 6, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 58.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6902.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}}, "stats": {"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__campaign_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 5, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "FLOAT64", "index": 6, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "INT64", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "INT64", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "FLOAT64", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "INT64", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "FLOAT64", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 19, "name": "swipes", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1820.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "NUMERIC", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "NUMERIC", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "NUMERIC", "index": 5, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "NUMERIC", "index": 6, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "NUMERIC", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "NUMERIC", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "NUMERIC", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "NUMERIC", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "NUMERIC", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "NUMERIC", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "NUMERIC", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "NUMERIC", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "NUMERIC", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "NUMERIC", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 19, "name": "swipes", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84840.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 2, "name": "created_at", "comment": null}, "ad_account_id": {"type": "STRING", "index": 3, "name": "ad_account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 4, "name": "creative_name", "comment": null}, "url": {"type": "STRING", "index": 5, "name": "url", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 119.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16898.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_account_id": {"type": "STRING", "index": 1, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 2, "name": "ad_account_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "advertiser": {"type": "STRING", "index": 4, "name": "advertiser", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "timezone": {"type": "STRING", "index": 6, "name": "timezone", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 8, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 111.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8991.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 5, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "FLOAT64", "index": 6, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "INT64", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "INT64", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "FLOAT64", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "INT64", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "FLOAT64", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 19, "name": "swipes", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1820.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__creative_url_tag_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "param_key": {"type": "STRING", "index": 2, "name": "param_key", "comment": null}, "param_value": {"type": "STRING", "index": 3, "name": "param_value", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 4, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 5, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 383.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35285.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "name": "stg_snapchat_ads__ad_account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"}, "model.microsoft_ads.microsoft_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 10, "name": "keyword_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 11, "name": "keyword_id", "comment": null}, "match_type": {"type": "STRING", "index": 12, "name": "match_type", "comment": null}, "device_os": {"type": "STRING", "index": 13, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 14, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 15, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 16, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 52.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6890.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, "model.microsoft_ads.microsoft_ads__search_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__search_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 10, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 11, "name": "keyword_name", "comment": null}, "match_type": {"type": "STRING", "index": 12, "name": "match_type", "comment": null}, "search_query": {"type": "STRING", "index": 13, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 14, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 15, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 16, "name": "network", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1822.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, "model.microsoft_ads.microsoft_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_type": {"type": "STRING", "index": 6, "name": "campaign_type", "comment": null}, "campaign_timezone": {"type": "STRING", "index": 7, "name": "campaign_timezone", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "device_os": {"type": "STRING", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 11, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 12, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1520.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 269702.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, "model.microsoft_ads.microsoft_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "device_os": {"type": "STRING", "index": 10, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 11, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 12, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 13, "name": "currency_code", "comment": null}, "base_url": {"type": "STRING", "index": 14, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 15, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 16, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 17, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 18, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 19, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 20, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 21, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 23, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 24, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 312.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 59308.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 11, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 182.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 30486.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, "model.microsoft_ads.microsoft_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "ad_type": {"type": "STRING", "index": 10, "name": "ad_type", "comment": null}, "device_os": {"type": "STRING", "index": 11, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 12, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 13, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 14, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 312.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 48866.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, "model.microsoft_ads.microsoft_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "name": "microsoft_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "account_timezone": {"type": "STRING", "index": 4, "name": "account_timezone", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 8, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1138.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__tweet_url", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"display_url": {"type": "STRING", "index": 1, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 2, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 3, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 4, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 5, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 6, "name": "url", "comment": null}, "base_url": {"type": "STRING", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 14, "name": "utm_term", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24366.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url"}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"approval_status": {"type": "STRING", "index": 1, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 2, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 3, "name": "business_name", "comment": null}, "created_timestamp": {"type": "STRING", "index": 4, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "BOOL", "index": 5, "name": "is_deleted", "comment": null}, "account_id": {"type": "STRING", "index": 6, "name": "account_id", "comment": null}, "industry_type": {"type": "INT64", "index": 7, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 9, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 10, "name": "timezone", "comment": null}, "timezone_switched_timestamp": {"type": "STRING", "index": 11, "name": "timezone_switched_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 12, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 13, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 131.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__tweet_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__tweet", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 2, "name": "tweet_id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "full_text": {"type": "STRING", "index": 4, "name": "full_text", "comment": null}, "language": {"type": "STRING", "index": 5, "name": "language", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__line_item_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 336.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 342.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "created_timestamp": {"type": "STRING", "index": 2, "name": "created_timestamp", "comment": null}, "currency": {"type": "STRING", "index": 3, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 4, "name": "daily_budget_amount_local_micro", "comment": null}, "is_deleted": {"type": "BOOL", "index": 5, "name": "is_deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 6, "name": "duration_in_days", "comment": null}, "end_timestamp": {"type": "STRING", "index": 7, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "STRING", "index": 8, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 9, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 10, "name": "funding_instrument_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 11, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 12, "name": "campaign_name", "comment": null}, "is_servable": {"type": "BOOL", "index": 13, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "BOOL", "index": 14, "name": "is_standard_delivery", "comment": null}, "start_timestamp": {"type": "STRING", "index": 15, "name": "start_timestamp", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 16, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 17, "name": "updated_timestamp", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 18, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 19, "name": "total_budget_amount", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 20, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2651.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__tweet_url_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__line_item_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__line_item_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"approval_status": {"type": "STRING", "index": 1, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "STRING", "index": 2, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "BOOL", "index": 3, "name": "is_deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 4, "name": "entity_status", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 5, "name": "promoted_tweet_id", "comment": null}, "line_item_id": {"type": "STRING", "index": 6, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 7, "name": "tweet_id", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 8, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 9, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 21.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1953.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__line_item_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_timestamp": {"type": "STRING", "index": 9, "name": "created_timestamp", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "is_deleted": {"type": "BOOL", "index": 12, "name": "is_deleted", "comment": null}, "end_timestamp": {"type": "INT64", "index": 13, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "line_item_id": {"type": "STRING", "index": 15, "name": "line_item_id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_timestamp": {"type": "INT64", "index": 21, "name": "start_timestamp", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 24, "name": "updated_timestamp", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 25, "name": "bid_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 26, "name": "total_budget_amount", "comment": null}, "target_cpa": {"type": "FLOAT64", "index": 27, "name": "target_cpa", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 28, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3082.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 3, "name": "promoted_tweet_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "name": "stg_twitter_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"}, "model.linkedin.linkedin_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "click_uri": {"type": "STRING", "index": 2, "name": "click_uri", "comment": null}, "base_url": {"type": "STRING", "index": 3, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 4, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 5, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 6, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 7, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 8, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 9, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 10, "name": "utm_term", "comment": null}, "creative_id": {"type": "INT64", "index": 11, "name": "creative_id", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 12, "name": "version_tag", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 14, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 15, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 16, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 17, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 18, "name": "account_name", "comment": null}, "currency": {"type": "STRING", "index": 19, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 22, "name": "cost", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 97.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__url_report"}, "model.linkedin.linkedin_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 9, "name": "created_at", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 12, "name": "cost", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1916.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__account_report"}, "model.linkedin.linkedin_ads__creative_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__creative_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 3, "name": "version_tag", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 6, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 7, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 8, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 9, "name": "account_name", "comment": null}, "type": {"type": "STRING", "index": 10, "name": "type", "comment": null}, "click_uri": {"type": "STRING", "index": 11, "name": "click_uri", "comment": null}, "creative_status": {"type": "STRING", "index": 12, "name": "creative_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 13, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "STRING", "index": 14, "name": "campaign_group_status", "comment": null}, "call_to_action_label_type": {"type": "STRING", "index": 15, "name": "call_to_action_label_type", "comment": null}, "currency": {"type": "STRING", "index": 16, "name": "currency", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 17, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 18, "name": "created_at", "comment": null}, "clicks": {"type": "INT64", "index": 19, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 21, "name": "cost", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9916.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, "model.linkedin.linkedin_ads__campaign_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__campaign_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 2, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 3, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "is_backfilled": {"type": "BOOL", "index": 8, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 9, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 10, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 11, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 12, "name": "created_at", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 15, "name": "cost", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2276.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report"}, "model.linkedin.linkedin_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "name": "linkedin_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 5, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 6, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 7, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 8, "name": "account_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 9, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "STRING", "index": 10, "name": "campaign_group_status", "comment": null}, "type": {"type": "STRING", "index": 11, "name": "type", "comment": null}, "cost_type": {"type": "STRING", "index": 12, "name": "cost_type", "comment": null}, "creative_selection": {"type": "STRING", "index": 13, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 14, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "STRING", "index": 15, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "FLOAT64", "index": 16, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "STRING", "index": 17, "name": "unit_cost_currency_code", "comment": null}, "currency": {"type": "STRING", "index": 18, "name": "currency", "comment": null}, "format": {"type": "STRING", "index": 19, "name": "format", "comment": null}, "locale_country": {"type": "STRING", "index": 20, "name": "locale_country", "comment": null}, "locale_language": {"type": "STRING", "index": 21, "name": "locale_language", "comment": null}, "objective_type": {"type": "STRING", "index": 22, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "STRING", "index": 23, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "BOOL", "index": 24, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "BOOL", "index": 25, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 26, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 27, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 28, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 29, "name": "created_at", "comment": null}, "clicks": {"type": "INT64", "index": 30, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 31, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 32, "name": "cost", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3276.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__campaign_report"}}, "sources": {"source.twitter_ads_source.twitter_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2971.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 58.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_campaign_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 229.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 38470.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_search_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2126.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 401.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 68992.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 177.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history"}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_search_term_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 150.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35485.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report"}, "source.linkedin_source.linkedin.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7263.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.creative_history"}, "source.twitter_ads_source.twitter_ads.line_item_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2973.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history"}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_advertiser_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "INT64", "index": 14, "name": "reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "INT64", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "STRING", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 439.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser"}, "source.google_ads_source.google_ads.ad_group_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4150.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_stats"}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_ad_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "INT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "INT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "INT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "INT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly"}, "source.facebook_ads_source.facebook_ads.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1415996.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.creative_history"}, "source.pinterest_source.pinterest_ads.keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "INT64", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "INT64", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "INT64", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "INT64", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "STRING", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "STRING", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "INT64", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 29.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_report"}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 399720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_adgroup_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 170.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report"}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 595.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history"}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1524.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report"}, "source.google_ads_source.google_ads.keyword_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_keyword_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4260.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.keyword_stats"}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 101.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history"}, "source.twitter_ads_source.twitter_ads.tweet_url": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_tweet_url_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16671.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url"}, "source.twitter_ads_source.twitter_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 159.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.account_history"}, "source.twitter_ads_source.twitter_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8091.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_promoted_tweet_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10500.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report"}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_adgroup_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "STRING", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "INT64", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "INT64", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "INT64", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "STRING", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "STRING", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "INT64", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "INT64", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "INT64", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "BOOL", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "STRING", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "STRING", "index": 64, "name": "age", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "STRING", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "STRING", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2527.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history"}, "source.apple_search_ads_source.apple_search_ads.organization": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_organization_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 132.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.organization"}, "source.twitter_ads_source.twitter_ads.line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_line_item_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8084.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report"}, "source.google_ads_source.google_ads.campaign_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_campaign_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3590.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_stats"}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 53.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9602.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"}, "source.twitter_ads_source.twitter_ads.tweet": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_tweet_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1312.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet"}, "source.google_ads_source.google_ads.ad_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1765.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_stats"}, "source.facebook_ads_source.facebook_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 522.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history"}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_criterion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 261.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15771.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history"}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_creative_url_tag_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 383.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 41413.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_campaign_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "DATETIME", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "FLOAT64", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "INT64", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "INT64", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "INT64", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "FLOAT64", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "INT64", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "INT64", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "INT64", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "INT64", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "FLOAT64", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "STRING", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "STRING", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "FLOAT64", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "INT64", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "FLOAT64", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "INT64", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "INT64", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "FLOAT64", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "INT64", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "FLOAT64", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "STRING", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "FLOAT64", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "FLOAT64", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "FLOAT64", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "INT64", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"}, "source.linkedin_source.linkedin.ad_analytics_by_creative": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_analytics_by_creative_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2968.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_creative"}, "source.linkedin_source.linkedin.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 882.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.account_history"}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 940.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_squad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 228.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 30780.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history"}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 119.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18802.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history"}, "source.pinterest_source.pinterest_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 120.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 320.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 55360.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history"}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "STRING", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "INT64", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "INT64", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "BOOL", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1072.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history"}, "source.pinterest_source.pinterest_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 799.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_history"}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_pin_promotion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 18.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3204.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history"}, "source.google_ads_source.google_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 272.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_history"}, "source.facebook_ads_source.facebook_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 59.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3481.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.account_history"}, "source.pinterest_source.pinterest_ads.ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2484.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report"}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_account_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1163.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_pin_promotion_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATETIME", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9708.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report"}, "source.pinterest_source.pinterest_ads.advertiser_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_advertiser_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 100.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history"}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1651.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report"}, "source.google_ads_source.google_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 66.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_history"}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "tiktok_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "STRING", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "STRING", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "STRING", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "INT64", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "STRING", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 13, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 703.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history"}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1151.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history"}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 99.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12573.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report"}, "source.pinterest_source.pinterest_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1894.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_report"}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_ad_set_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 924.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history"}, "source.google_ads_source.google_ads.account_stats": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_account_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3500.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_stats"}, "source.linkedin_source.linkedin.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.campaign_history"}, "source.pinterest_source.pinterest_ads.advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_advertiser_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "INT64", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1344.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report"}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 334.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history"}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "apple_search_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 419.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84840.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report"}, "source.google_ads_source.google_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1040.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_history"}, "source.pinterest_source.pinterest_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "pinterest_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 604.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history"}, "source.google_ads_source.google_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "google_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 713.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_history"}, "source.linkedin_source.linkedin.campaign_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_campaign_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 232.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.campaign_group_history"}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 111.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10767.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history"}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 658.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history"}, "source.linkedin_source.linkedin.ad_analytics_by_campaign": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "linkedin_ad_analytics_by_campaign_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "DATETIME", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7252.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_campaign"}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "microsoft_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1125.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "snapchat_ad_squad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "twitter_promoted_tweet_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 21.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2541.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history"}, "source.facebook_ads_source.facebook_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_history"}, "source.facebook_ads_source.facebook_ads.basic_ad": {"metadata": {"type": "table", "schema": "ad_reporting_integration_tests_v1", "name": "facebook_ads_basic_ad_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 480.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 56291a2..182b6b4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
icons
- diff --git a/docs/manifest.json b/docs/manifest.json index 9636322..e089aff 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v6.json", "dbt_version": "1.2.0", "generated_at": "2022-09-07T05:19:53.431050Z", "invocation_id": "e52f20b1-cafa-4719-95d5-7d7809766aa4", "env": {}, "project_id": "9bf57d857f8bb3abf75f1b334ad30f3c", "user_id": "535a716f-60c0-47b9-9763-5e1b450166b6", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_history_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_line_item_history_data.csv", "original_file_path": "seeds/twitter_line_item_history_data.csv", "name": "twitter_line_item_history_data", "alias": "twitter_line_item_history_data", "checksum": {"name": "sha256", "checksum": "daa4cbbaf3f09ccdc7dea309513ca09e42782e7b7734d91f9c93e8a838e7486f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.669543, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_history_data`"}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_keyword_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_keyword_stats_data.csv", "original_file_path": "seeds/google_ads_keyword_stats_data.csv", "name": "google_ads_keyword_stats_data", "alias": "google_ads_keyword_stats_data", "checksum": {"name": "sha256", "checksum": "e4745703dd19dabf77a7df047ced6c1c56966ad8552d2f67676bcfd4ff36c94f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.686996, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_keyword_stats_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_ad_group_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_ad_group_report_data.csv", "original_file_path": "seeds/pinterest_ads_ad_group_report_data.csv", "name": "pinterest_ads_ad_group_report_data", "alias": "pinterest_ads_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "6451df695a92aca87f55fdc197110c9e91d5b1663808905afa2f031527fa3947"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.690818, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_report_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_campaign_history_data.csv", "original_file_path": "seeds/linkedin_ad_campaign_history_data.csv", "name": "linkedin_ad_campaign_history_data", "alias": "linkedin_ad_campaign_history_data", "checksum": {"name": "sha256", "checksum": "90cdf3c013456ff4a40f502e0d55fa10be2dfdb269b5b79b41671ab4558ae879"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.6943629, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_history_data`"}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_line_item_report_data.csv", "original_file_path": "seeds/twitter_line_item_report_data.csv", "name": "twitter_line_item_report_data", "alias": "twitter_line_item_report_data", "checksum": {"name": "sha256", "checksum": "4cef1efaf56e236366e68ccc814c5da3ddf3d2504ab3f156d5f4da1918c0bed6"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.698158, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_report_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_keyword_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_keyword_report_data.csv", "original_file_path": "seeds/pinterest_ads_keyword_report_data.csv", "name": "pinterest_ads_keyword_report_data", "alias": "pinterest_ads_keyword_report_data", "checksum": {"name": "sha256", "checksum": "46fc926a1182c51ea670ec916f3a86dfa2f20d5553227275682310462caaa849"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.703027, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_keyword_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_keyword_performance_daily_report_data", "alias": "microsoft_ads_keyword_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "24aab796f90b4c8d3376f138913e0070b2295af6744e8aeef1a5a68b06c4f32b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.707409, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "account_id": "int64", "ad_set_id": "int64", "campaign_id": "int64", "creative_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_ad_history_data.csv", "original_file_path": "seeds/facebook_ads_ad_history_data.csv", "name": "facebook_ads_ad_history_data", "alias": "facebook_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "95c960d78745b1652034ba4da5cc2a7d5b923e816a81c90360f1b28588b7befd"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_set_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "creative_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.710944, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_campaign_history_data.csv", "original_file_path": "seeds/apple_search_campaign_history_data.csv", "name": "apple_search_campaign_history_data", "alias": "apple_search_campaign_history_data", "checksum": {"name": "sha256", "checksum": "42cca2a87492b1c40a102fd9f9941a0894cdb254d7027a88dc9dedfeca1bb67c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.714993, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_campaign_history_data.csv", "original_file_path": "seeds/pinterest_ads_campaign_history_data.csv", "name": "pinterest_ads_campaign_history_data", "alias": "pinterest_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "4c2ec13ff8548a5571e2de4601947d72d934669534584fa234099b3200564aab"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.719427, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_history_data`"}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_account_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_account_report_data.csv", "original_file_path": "seeds/twitter_account_report_data.csv", "name": "twitter_account_report_data", "alias": "twitter_account_report_data", "checksum": {"name": "sha256", "checksum": "d1364362cbe48a00e05e628fac71d48e151ee2c5394b44c6000765ea069fa154"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.7229052, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_account_report_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_creative_history_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_creative_history_data.csv", "original_file_path": "seeds/linkedin_ad_creative_history_data.csv", "name": "linkedin_ad_creative_history_data", "alias": "linkedin_ad_creative_history_data", "checksum": {"name": "sha256", "checksum": "60d568d212f155df35c86f9d39572cf55a733c53598016adb0aa9b4df79ce2e8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1662526934.726296, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_creative_history_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_squad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_squad_history_data.csv", "original_file_path": "seeds/snapchat_ad_squad_history_data.csv", "name": "snapchat_ad_squad_history_data", "alias": "snapchat_ad_squad_history_data", "checksum": {"name": "sha256", "checksum": "0e83ca691f2153480e7b63173f1c7ed8c38c0dc247d41a6f2fd46afc1e5963b1"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.730321, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_history_data`"}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_campaign_history_data.csv", "original_file_path": "seeds/twitter_campaign_history_data.csv", "name": "twitter_campaign_history_data", "alias": "twitter_campaign_history_data", "checksum": {"name": "sha256", "checksum": "efc42a8a6652bd7f8fdcad7bd3e5803a749190f78acfd3aa5c5aa05e31d6bd35"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.7340019, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_pin_promotion_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_pin_promotion_history_data.csv", "original_file_path": "seeds/pinterest_ads_pin_promotion_history_data.csv", "name": "pinterest_ads_pin_promotion_history_data", "alias": "pinterest_ads_pin_promotion_history_data", "checksum": {"name": "sha256", "checksum": "6b7c5d891ccb02be0c1e126545984964eb4fa226a9d1ae9741ad76288497e338"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.73745, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_ad_group_history_data.csv", "original_file_path": "seeds/apple_search_ad_group_history_data.csv", "name": "apple_search_ad_group_history_data", "alias": "apple_search_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "6940c04c90cc94b46d8a36bf1b3701cbd64d75b298222e26819aaf6460ddf984"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.7409291, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_history_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_campaign_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_campaign_group_history_data.csv", "original_file_path": "seeds/linkedin_ad_campaign_group_history_data.csv", "name": "linkedin_ad_campaign_group_history_data", "alias": "linkedin_ad_campaign_group_history_data", "checksum": {"name": "sha256", "checksum": "a3e2f426d56d779f1bcb3013b2d4862e7a8203c0372c4892e598165fedab1744"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.744441, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_group_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_ad_group_history_data.csv", "original_file_path": "seeds/pinterest_ads_ad_group_history_data.csv", "name": "pinterest_ads_ad_group_history_data", "alias": "pinterest_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "ff76dce5a5b57b38a03bfc295838b9f05e99e3e310066ac3fc96f7c78e3b6be8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.749417, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_history_data`"}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_campaign_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_campaign_stats_data.csv", "original_file_path": "seeds/google_ads_campaign_stats_data.csv", "name": "google_ads_campaign_stats_data", "alias": "google_ads_campaign_stats_data", "checksum": {"name": "sha256", "checksum": "f8ffb40c33a31cdd4185ed5e956cfdaff9736054806ef3f9da5cf6f036ef7d0d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.753013, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_stats_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_account_history_data.csv", "original_file_path": "seeds/microsoft_ads_account_history_data.csv", "name": "microsoft_ads_account_history_data", "alias": "microsoft_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "282800342d5306132bdc208ee361599831ae8566b4639cd5c3bea492062e4b78"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"name": "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}"}}, "created_at": 1662526934.756507, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_history_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_account_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_account_performance_daily_report_data", "alias": "microsoft_ads_account_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "38506b413bb9edde36b2b1ab800847a06cddd5205317dbcd351ae3b0eb730bc2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.760124, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_ad_history_data.csv", "original_file_path": "seeds/tiktok_ad_history_data.csv", "name": "tiktok_ad_history_data", "alias": "tiktok_ad_history_data", "checksum": {"name": "sha256", "checksum": "e8cd94df3f2404a811c8e661e0a3c9e843a93af4082a34bcf4e2a0581a582fb5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.7674508, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"page_link": "string", "template_page_link": "string", "id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_creative_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_creative_history_data.csv", "original_file_path": "seeds/facebook_ads_creative_history_data.csv", "name": "facebook_ads_creative_history_data", "alias": "facebook_ads_creative_history_data", "checksum": {"name": "path", "checksum": "seeds/facebook_ads_creative_history_data.csv"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"page_link": "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}", "template_page_link": "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}", "id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.770998, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_creative_history_data`"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_adgroup_report_hourly_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_adgroup_report_hourly_data.csv", "original_file_path": "seeds/tiktok_adgroup_report_hourly_data.csv", "name": "tiktok_adgroup_report_hourly_data", "alias": "tiktok_adgroup_report_hourly_data", "checksum": {"name": "sha256", "checksum": "8be9d24fc395101fc03be9b0e38f0e87baf450c262ce29af544fd1fae72c203a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.77535, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_report_hourly_data`"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"tweet_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_promoted_tweet_history_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_promoted_tweet_history_data.csv", "original_file_path": "seeds/twitter_promoted_tweet_history_data.csv", "name": "twitter_promoted_tweet_history_data", "alias": "twitter_promoted_tweet_history_data", "checksum": {"name": "sha256", "checksum": "ec5e3be3c75b17b07893e9e7c21a4e0b8d5a820a73d3306fd94ec59935714690"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.779712, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_organization_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_organization_data.csv", "original_file_path": "seeds/apple_search_organization_data.csv", "name": "apple_search_organization_data", "alias": "apple_search_organization_data", "checksum": {"name": "sha256", "checksum": "bbb5878ab9c07bd1f391181a8321ea50476f37d25f36fd1d66e58d513336699c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.784478, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_organization_data`"}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_campaign_history_data.csv", "original_file_path": "seeds/tiktok_campaign_history_data.csv", "name": "tiktok_campaign_history_data", "alias": "tiktok_campaign_history_data", "checksum": {"name": "sha256", "checksum": "c9a4686eed6f728add12beb70cb5820de610d87e882111bc1fa254c361ed0321"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.788279, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_history_data`"}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_advertiser_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_advertiser_data.csv", "original_file_path": "seeds/tiktok_advertiser_data.csv", "name": "tiktok_advertiser_data", "alias": "tiktok_advertiser_data", "checksum": {"name": "sha256", "checksum": "de5eae63898b95132ec4cadc4e896dd253e3a2cb1dd0d8a94df849ca8e861a4c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.79195, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_advertiser_data`"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_promoted_tweet_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_promoted_tweet_report_data.csv", "original_file_path": "seeds/twitter_promoted_tweet_report_data.csv", "name": "twitter_promoted_tweet_report_data", "alias": "twitter_promoted_tweet_report_data", "checksum": {"name": "sha256", "checksum": "6a94bf0e2cfcebb31203eba09cf167ef23144b892aa14b654461ff216b4b6a8e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.795736, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_ad_group_stats_data.csv", "original_file_path": "seeds/google_ads_ad_group_stats_data.csv", "name": "google_ads_ad_group_stats_data", "alias": "google_ads_ad_group_stats_data", "checksum": {"name": "sha256", "checksum": "d3ac6d88466ebf8fca7753e60be01dfa615a8e9b654da4d91fab8ee59c6c7cf0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.800323, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_stats_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_ad_stats_data.csv", "original_file_path": "seeds/google_ads_ad_stats_data.csv", "name": "google_ads_ad_stats_data", "alias": "google_ads_ad_stats_data", "checksum": {"name": "sha256", "checksum": "7aa7a5c05d68344ef454636b9f70e4e69869c5d78f677b20df600e5ac2ddcb25"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.804106, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_stats_data`"}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_campaign_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_campaign_report_data.csv", "original_file_path": "seeds/twitter_campaign_report_data.csv", "name": "twitter_campaign_report_data", "alias": "twitter_campaign_report_data", "checksum": {"name": "sha256", "checksum": "bb3bdaea68e1bc903cb5b3a3e507926b43009e0f52ec2f867a97e7276cef81bb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.807156, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_account_history_data.csv", "original_file_path": "seeds/google_ads_account_history_data.csv", "name": "google_ads_account_history_data", "alias": "google_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "bf0559a512f089514aa67964b7ae5aef0fee8deb6e0874c01e853ed78dd7883d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.810026, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_campaign_history_data.csv", "original_file_path": "seeds/facebook_ads_campaign_history_data.csv", "name": "facebook_ads_campaign_history_data", "alias": "facebook_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "1dfd8244efe7c32be5fb93c8417575d79670225092a28cab9da03d0ad7773432"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.813238, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_campaign_history_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_keyword_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_keyword_history_data.csv", "original_file_path": "seeds/microsoft_ads_keyword_history_data.csv", "name": "microsoft_ads_keyword_history_data", "alias": "microsoft_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "e736b54737adad8174d44a89eab9a6b720326744bff802fda870f585c86e7511"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.8163588, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_history_data`"}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"tweet_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_tweet_url_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_tweet_url_data.csv", "original_file_path": "seeds/twitter_tweet_url_data.csv", "name": "twitter_tweet_url_data", "alias": "twitter_tweet_url_data", "checksum": {"name": "sha256", "checksum": "9dc909bf2d2459ddb0228c3ba58e230b8080a67ffaecce201f5de36c338d62b2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.8202372, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_url_data`"}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"modification_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_keyword_history_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_keyword_history_data.csv", "original_file_path": "seeds/apple_search_keyword_history_data.csv", "name": "apple_search_keyword_history_data", "alias": "apple_search_keyword_history_data", "checksum": {"name": "sha256", "checksum": "a6d53cd4951594b21214e60bf51503907ee364eac04c7d24a19dc490cc7d818c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"modification_time": "timestamp"}}, "created_at": 1662526934.823361, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_campaign_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_campaign_report_data.csv", "original_file_path": "seeds/pinterest_ads_campaign_report_data.csv", "name": "pinterest_ads_campaign_report_data", "alias": "pinterest_ads_campaign_report_data", "checksum": {"name": "sha256", "checksum": "40dc5b48841d732d7707801558e939abdbf2c0c333a2a4b6f76cd40d68f90f78"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.82636, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_search_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_search_performance_daily_report_data", "alias": "microsoft_ads_search_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "d511070057e0350bd6feeff317d9adf1fbe30690b615211738b3f2efc6e29133"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.8296351, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_search_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_campaign_history_data.csv", "original_file_path": "seeds/google_ads_campaign_history_data.csv", "name": "google_ads_campaign_history_data", "alias": "google_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "54db8f4f5a51eae1af9391b9b74c4b847485e82c382a25ebc1b4a727640825e5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.832639, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_keyword_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_keyword_history_data.csv", "original_file_path": "seeds/pinterest_ads_keyword_history_data.csv", "name": "pinterest_ads_keyword_history_data", "alias": "pinterest_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "589c187cfa8845b5851700d6e10128a158fe860a55a4f4de7f83b1e92226bc9e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.83626, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_history_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"day": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_analytics_by_creative_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_analytics_by_creative_data.csv", "original_file_path": "seeds/linkedin_ad_analytics_by_creative_data.csv", "name": "linkedin_ad_analytics_by_creative_data", "alias": "linkedin_ad_analytics_by_creative_data", "checksum": {"name": "sha256", "checksum": "90a1a324923b47307989ab10594f537f8c45262ffcdfd8ffbe09bae7f05760f7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"day": "timestamp"}}, "created_at": 1662526934.839295, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_creative_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_history_data.csv", "original_file_path": "seeds/snapchat_ad_history_data.csv", "name": "snapchat_ad_history_data", "alias": "snapchat_ad_history_data", "checksum": {"name": "sha256", "checksum": "839c0910ff6ff3cff2580bd9144223132dd1d87f003aeea329e47ba858a2dc23"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.8424509, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_account_history_data.csv", "original_file_path": "seeds/facebook_ads_account_history_data.csv", "name": "facebook_ads_account_history_data", "alias": "facebook_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "cd864f60b0ec016488416e66c22b5ff0ffcb882139124d92c3207f5abb0ae36d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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'] else 'varchar' }}"}}, "created_at": 1662526934.845301, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_account_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_campaign_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_campaign_report_data.csv", "original_file_path": "seeds/apple_search_campaign_report_data.csv", "name": "apple_search_campaign_report_data", "alias": "apple_search_campaign_report_data", "checksum": {"name": "sha256", "checksum": "a4a374475156eb8d9ddc40c43cadbcc843efcf7a55180346d2d4b875c2791ab1"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.8481212, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_ad_group_history_data.csv", "original_file_path": "seeds/google_ads_ad_group_history_data.csv", "name": "google_ads_ad_group_history_data", "alias": "google_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "82518353626bed4214f1dea514b77c97c96da2e4c7253734c3268e55111e67ce"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.851146, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_history_data`"}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_campaign_history_data.csv", "original_file_path": "seeds/snapchat_campaign_history_data.csv", "name": "snapchat_campaign_history_data", "alias": "snapchat_campaign_history_data", "checksum": {"name": "sha256", "checksum": "640eb2ec082938ad70c430a6b3441711f6fed19eb6e28d7622f03294e92e5b70"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.854435, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ad_id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_basic_ad_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_basic_ad_data.csv", "original_file_path": "seeds/facebook_ads_basic_ad_data.csv", "name": "facebook_ads_basic_ad_data", "alias": "facebook_ads_basic_ad_data", "checksum": {"name": "sha256", "checksum": "66b31e24edd0ba75d3fee6ad4c1522fd9b43417943aac398f1c92f5076ba7ac0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ad_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.859806, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_basic_ad_data`"}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_ad_report_hourly_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_ad_report_hourly_data.csv", "original_file_path": "seeds/tiktok_ad_report_hourly_data.csv", "name": "tiktok_ad_report_hourly_data", "alias": "tiktok_ad_report_hourly_data", "checksum": {"name": "sha256", "checksum": "d69dcb9baa6015d02d6304146b4f3c6cab3fb75431c351636d9c9f65b5f7d911"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.862875, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_report_hourly_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_group_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_ad_group_performance_daily_report_data", "alias": "microsoft_ads_ad_group_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "384b5c5b4f318171a536391e3591a2d4833f4bafeef3ea7f20be82b1f04b1346"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.866219, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_search_term_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_search_term_report_data.csv", "original_file_path": "seeds/apple_search_search_term_report_data.csv", "name": "apple_search_search_term_report_data", "alias": "apple_search_search_term_report_data", "checksum": {"name": "sha256", "checksum": "6add75b68a0f9a6f153a9fb83a682387a76a5b89d6dcd14fdbbcb5b418bb3b5a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.870878, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_search_term_report_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_squad_hourly_report_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_squad_hourly_report_data.csv", "original_file_path": "seeds/snapchat_ad_squad_hourly_report_data.csv", "name": "snapchat_ad_squad_hourly_report_data", "alias": "snapchat_ad_squad_hourly_report_data", "checksum": {"name": "sha256", "checksum": "bfd35d6b8446668beead2ac4590a52d36815d55adf1dee4cde552a5538fc1725"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.874304, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_hourly_report_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_account_history_data.csv", "original_file_path": "seeds/linkedin_ad_account_history_data.csv", "name": "linkedin_ad_account_history_data", "alias": "linkedin_ad_account_history_data", "checksum": {"name": "sha256", "checksum": "e00ceef7b82a006c9fb463fe928e58f1d0bdaeddb0541508934c62d0142084fb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1662526934.8775911, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_account_history_data`"}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_account_history_data.csv", "original_file_path": "seeds/twitter_account_history_data.csv", "name": "twitter_account_history_data", "alias": "twitter_account_history_data", "checksum": {"name": "sha256", "checksum": "229fd6a7831e53082c29732e64a0e1dde615b4918a4a724a20f5277acbc6b91f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"name": "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}"}}, "created_at": 1662526934.880855, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_account_history_data`"}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_creative_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_creative_history_data.csv", "original_file_path": "seeds/snapchat_creative_history_data.csv", "name": "snapchat_creative_history_data", "alias": "snapchat_creative_history_data", "checksum": {"name": "sha256", "checksum": "40505e1e47b59c850371007584560a03172120f078da2c81c6712aea77d868a8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.884193, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_history_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_analytics_by_campaign_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_analytics_by_campaign_data.csv", "original_file_path": "seeds/linkedin_ad_analytics_by_campaign_data.csv", "name": "linkedin_ad_analytics_by_campaign_data", "alias": "linkedin_ad_analytics_by_campaign_data", "checksum": {"name": "sha256", "checksum": "a6b72fcf11043561ec04bae0035659363e992cd11f8ed5376f056b7f4e5b5b32"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.887048, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_campaign_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_ad_history_data.csv", "original_file_path": "seeds/google_ads_ad_history_data.csv", "name": "google_ads_ad_history_data", "alias": "google_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "d75e5e99b2a5e2c3cecf248666c708c739a75cdee2cd66068fc893d9fe7ad635"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.8901272, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "account_id": "int64", "campaign_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_ad_set_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_ad_set_history_data.csv", "original_file_path": "seeds/facebook_ads_ad_set_history_data.csv", "name": "facebook_ads_ad_set_history_data", "alias": "facebook_ads_ad_set_history_data", "checksum": {"name": "sha256", "checksum": "da4e6b48f3feaa4bd2c3783b125909a14c5317b3c1484b4f6af5d7c1d88f5bd7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.893384, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_set_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_pin_promotion_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_pin_promotion_report_data.csv", "original_file_path": "seeds/pinterest_ads_pin_promotion_report_data.csv", "name": "pinterest_ads_pin_promotion_report_data", "alias": "pinterest_ads_pin_promotion_report_data", "checksum": {"name": "sha256", "checksum": "adef7939173c1809f516a7cf739b697eb875210228e21a1cbb52bbdee7dc4ce4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.896929, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_report_data`"}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_keyword_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_keyword_report_data.csv", "original_file_path": "seeds/apple_search_keyword_report_data.csv", "name": "apple_search_keyword_report_data", "alias": "apple_search_keyword_report_data", "checksum": {"name": "sha256", "checksum": "6aafe7098ea6f18764856a6631b190de106462f83f8bb1d3c8fb91e2d3cfffee"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.900765, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_report_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_hourly_report_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_hourly_report_data.csv", "original_file_path": "seeds/snapchat_ad_hourly_report_data.csv", "name": "snapchat_ad_hourly_report_data", "alias": "snapchat_ad_hourly_report_data", "checksum": {"name": "sha256", "checksum": "1f2f808727dc7d9d45ba0ac10bba717da6454110d8fb242ee54986b8b60d7f9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"date": "timestamp"}}, "created_at": 1662526934.9038248, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_hourly_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_ad_performance_daily_report_data", "alias": "microsoft_ads_ad_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "026f9dd8b52f39f82551e9b632dc4ee00ef44df83c0227d076ecb260025a451a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.906757, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_tweet_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_tweet_data.csv", "original_file_path": "seeds/twitter_tweet_data.csv", "name": "twitter_tweet_data", "alias": "twitter_tweet_data", "checksum": {"name": "sha256", "checksum": "7e28de3484a806b3428f4898e035364e2a282ef5819cfe895f8c94f6455e726f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.90989, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_data`"}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_campaign_hourly_report_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_campaign_hourly_report_data.csv", "original_file_path": "seeds/snapchat_campaign_hourly_report_data.csv", "name": "snapchat_campaign_hourly_report_data", "alias": "snapchat_campaign_hourly_report_data", "checksum": {"name": "sha256", "checksum": "30cfac35c4fb0c216f8992ee23e13c2ed9322373ef62316ca9b5876952444295"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.912589, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_hourly_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_ad_history_data.csv", "original_file_path": "seeds/microsoft_ads_ad_history_data.csv", "name": "microsoft_ads_ad_history_data", "alias": "microsoft_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "68d19aa9efd8111d82af64fb5ceadb9d124fe1f2d1ec9d87fb6a87e96b4e6eba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.9154391, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_history_data`"}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_keywords_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_line_item_keywords_report_data.csv", "original_file_path": "seeds/twitter_line_item_keywords_report_data.csv", "name": "twitter_line_item_keywords_report_data", "alias": "twitter_line_item_keywords_report_data", "checksum": {"name": "sha256", "checksum": "80107d8a67ce63a986c2e1a4d7af8d1e6572053a11e20e7df98f5d42e0da690e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.9185169, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_keywords_report_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_account_history_data.csv", "original_file_path": "seeds/snapchat_ad_account_history_data.csv", "name": "snapchat_ad_account_history_data", "alias": "snapchat_ad_account_history_data", "checksum": {"name": "sha256", "checksum": "0e1f3a58ee6a4863bb59fbd30c286606f0de77040fbb2903ab312e5d248454cb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.9224699, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_account_history_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_campaign_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_campaign_performance_daily_report_data", "alias": "microsoft_ads_campaign_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "d17c48a2ce7415911e29e14861236fd168f454468a3dbfbf8bf73e8d28ee1e00"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.9261508, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_criterion_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "google_ads_ad_group_criterion_history_data", "alias": "google_ads_ad_group_criterion_history_data", "checksum": {"name": "sha256", "checksum": "ba922f14e5ead32ec131a2d000bede63d45f504b6c27fc84534b4bf56fc019f2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.929218, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_criterion_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_ad_report_data.csv", "original_file_path": "seeds/apple_search_ad_report_data.csv", "name": "apple_search_ad_report_data", "alias": "apple_search_ad_report_data", "checksum": {"name": "sha256", "checksum": "cec2ecc4c7e91cf19165a1e29734c42255fd997ade35f03a22609aac5fa8e5f3"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.932084, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_account_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_account_stats_data.csv", "original_file_path": "seeds/google_ads_account_stats_data.csv", "name": "google_ads_account_stats_data", "alias": "google_ads_account_stats_data", "checksum": {"name": "sha256", "checksum": "d6b21f0858465ed0937e45a56e864fa023280d4e9a343e3e8442764386717ff7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.934765, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_stats_data`"}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_creative_url_tag_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_creative_url_tag_history_data.csv", "original_file_path": "seeds/snapchat_creative_url_tag_history_data.csv", "name": "snapchat_creative_url_tag_history_data", "alias": "snapchat_creative_url_tag_history_data", "checksum": {"name": "sha256", "checksum": "c5e8dbafad038e142209d2145532d5d5e762922bf4fe44535901b46cd9797dcc"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.937828, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_url_tag_history_data`"}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_campaign_report_hourly_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_campaign_report_hourly_data.csv", "original_file_path": "seeds/tiktok_campaign_report_hourly_data.csv", "name": "tiktok_campaign_report_hourly_data", "alias": "tiktok_campaign_report_hourly_data", "checksum": {"name": "sha256", "checksum": "e142bf0e3037365792c797d4dcbc3c3ec4621f1802fae83b3ef5a4f05630f162"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.940168, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_report_hourly_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_campaign_history_data.csv", "original_file_path": "seeds/microsoft_ads_campaign_history_data.csv", "name": "microsoft_ads_campaign_history_data", "alias": "microsoft_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "b713e54ffdbc25d2260c83c5a17eb48d98bde788bcdb5b62defa9cca936cb552"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.942482, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_advertiser_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_advertiser_history_data.csv", "original_file_path": "seeds/pinterest_ads_advertiser_history_data.csv", "name": "pinterest_ads_advertiser_history_data", "alias": "pinterest_ads_advertiser_history_data", "checksum": {"name": "sha256", "checksum": "a1efd698a39cc0a75b74b43b84d114eddf6eaac9d3dd7d2a06e704951c091fe4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.944872, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_advertiser_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_advertiser_report_data.csv", "original_file_path": "seeds/pinterest_ads_advertiser_report_data.csv", "name": "pinterest_ads_advertiser_report_data", "alias": "pinterest_ads_advertiser_report_data", "checksum": {"name": "sha256", "checksum": "d1a7a977ede788e2610dc21decfb57c226253807e9780784d17a06175f9adef8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1662526934.947607, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_report_data`"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_group_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_ad_group_report_data.csv", "original_file_path": "seeds/apple_search_ad_group_report_data.csv", "name": "apple_search_ad_group_report_data", "alias": "apple_search_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "135ee77ac9c3aa146d4f0281b04312c1034c271276f215b27145bb99f83534f5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.9499981, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "campaign_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_ad_group_history_data.csv", "original_file_path": "seeds/microsoft_ads_ad_group_history_data.csv", "name": "microsoft_ads_ad_group_history_data", "alias": "microsoft_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "4abd621bb94190bc111a86b471c7cde3b75308f0eee84a0c62fcdeb53bc54d9e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1662526934.952418, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_ad_history_data.csv", "original_file_path": "seeds/apple_search_ad_history_data.csv", "name": "apple_search_ad_history_data", "alias": "apple_search_ad_history_data", "checksum": {"name": "sha256", "checksum": "e9e1a65339d24d616ce16ea8ee3cc902473a1b5048789ad338c4ba6ca57fe8e0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}}, "created_at": 1662526934.954902, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_history_data`"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_adgroup_history_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_adgroup_history_data.csv", "original_file_path": "seeds/tiktok_adgroup_history_data.csv", "name": "tiktok_adgroup_history_data", "alias": "tiktok_adgroup_history_data", "checksum": {"name": "sha256", "checksum": "572b082b8c5ae907a5223b5e07ac93098104c5cc39fe525580c858aaf5efeebd"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1662526934.95756, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_history_data`"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_account_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_daily_report"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__account_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__account_daily_report.sql", "name": "stg_microsoft_ads__account_daily_report", "alias": "stg_microsoft_ads__account_daily_report", "checksum": {"name": "sha256", "checksum": "13f0f5b9c0d3c8e1474867c8492a360d07f6cb1756022a352c821be8cda7af26"}, "tags": [], "refs": [["stg_microsoft_ads__account_daily_report_tmp"], ["stg_microsoft_ads__account_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.573746, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_search_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__search_daily_report"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__search_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__search_daily_report.sql", "name": "stg_microsoft_ads__search_daily_report", "alias": "stg_microsoft_ads__search_daily_report", "checksum": {"name": "sha256", "checksum": "c776b1595930feed1c4dfa76f94f9c346ff92e0ccfe2c52275bfef45ddf71c7c"}, "tags": [], "refs": [["stg_microsoft_ads__search_daily_report_tmp"], ["stg_microsoft_ads__search_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__search_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.628727, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_keyword_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_daily_report"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__keyword_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__keyword_daily_report.sql", "name": "stg_microsoft_ads__keyword_daily_report", "alias": "stg_microsoft_ads__keyword_daily_report", "checksum": {"name": "sha256", "checksum": "355959720c8f47de848c95bd42c6eefd81aeb89c02b20a3cc7e3e75098212212"}, "tags": [], "refs": [["stg_microsoft_ads__keyword_daily_report_tmp"], ["stg_microsoft_ads__keyword_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.620476, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_campaign_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_daily_report"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__campaign_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__campaign_daily_report.sql", "name": "stg_microsoft_ads__campaign_daily_report", "alias": "stg_microsoft_ads__campaign_daily_report", "checksum": {"name": "sha256", "checksum": "350b630e95b8e31e3c5dbb9ac98db233eca65a16198d4b03059122e118488edb"}, "tags": [], "refs": [["stg_microsoft_ads__campaign_daily_report_tmp"], ["stg_microsoft_ads__campaign_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.6083488, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_history"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__keyword_history.sql", "original_file_path": "models/stg_microsoft_ads__keyword_history.sql", "name": "stg_microsoft_ads__keyword_history", "alias": "stg_microsoft_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "1ab4d19ab769d28e12c6671643ccd3abcdb71dfbabffa4dbbe0fc4b08bae4232"}, "tags": [], "refs": [["stg_microsoft_ads__keyword_history_tmp"], ["stg_microsoft_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft keywords.", "columns": {"keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.612385, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_group_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_daily_report"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_daily_report.sql", "name": "stg_microsoft_ads__ad_group_daily_report", "alias": "stg_microsoft_ads__ad_group_daily_report", "checksum": {"name": "sha256", "checksum": "1469a2b46ec430dc3226a0ce28ad9e915104811f3b4aec44e6ef28aed7b2f48d"}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_daily_report_tmp"], ["stg_microsoft_ads__ad_group_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.585165, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_history"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_history.sql", "name": "stg_microsoft_ads__ad_group_history", "alias": "stg_microsoft_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "4de2e41bc989a2384df40fae5c9ab580b60bbc880b0d26c7ca84ab3937f3a7cf"}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_history_tmp"], ["stg_microsoft_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft ad groups.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The date in which an ad group starts running.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The date in which this ad group will no longer run.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.578062, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_history"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__ad_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_history.sql", "name": "stg_microsoft_ads__ad_history", "alias": "stg_microsoft_ads__ad_history", "checksum": {"name": "sha256", "checksum": "8b09a143b8874327b96ac512de797191baa321edd39103216953d6badb73351d"}, "tags": [], "refs": [["stg_microsoft_ads__ad_history_tmp"], ["stg_microsoft_ads__ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft ads.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The full URL that the ad links to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.589534, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_daily_report"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__ad_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_daily_report.sql", "name": "stg_microsoft_ads__ad_daily_report", "alias": "stg_microsoft_ads__ad_daily_report", "checksum": {"name": "sha256", "checksum": "5867c7ac2235bcdddd45c7c6f48b5340184f440ff88ffcd5f53f0e7e8a8f21c6"}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report_tmp"], ["stg_microsoft_ads__ad_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.5972219, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by last_modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_history"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__account_history.sql", "original_file_path": "models/stg_microsoft_ads__account_history.sql", "name": "stg_microsoft_ads__account_history", "alias": "stg_microsoft_ads__account_history", "checksum": {"name": "sha256", "checksum": "39eeb4c34161dd3e6ccee2310eb51adae09769ee8dca6b2e22d7d421048698e6"}, "tags": [], "refs": [["stg_microsoft_ads__account_history_tmp"], ["stg_microsoft_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft accounts.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.567449, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_history"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__campaign_history.sql", "original_file_path": "models/stg_microsoft_ads__campaign_history.sql", "name": "stg_microsoft_ads__campaign_history", "alias": "stg_microsoft_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "c47ff718f4a476f21216ecc8fee70546821ffa8af1b6309a6a88bde23e6ce763"}, "tags": [], "refs": [["stg_microsoft_ads__campaign_history_tmp"], ["stg_microsoft_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft campaigns.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526939.601557, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('search_performance_daily_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__search_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__search_daily_report_tmp", "alias": "stg_microsoft_ads__search_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "9b8d4452caa10568d6716c0c6b39598a962e60ca1859c4902ad9f7ad2bd28626"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "search_query_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.19189, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_search_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__ad_group_history_tmp", "alias": "stg_microsoft_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "0aebf1d34a59e00211f044b66e94c2d5141b3c0fc7b152dbdc769942a2da1c6e"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.203105, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_performance_daily_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "alias": "stg_microsoft_ads__campaign_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "673ffabe992b47d945786bc8f91ad5d586854df386a3bb40ddae76d7ad41da33"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "campaign_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.209867, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "name": "stg_microsoft_ads__ad_history_tmp", "alias": "stg_microsoft_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "f1af9df8b7a8c5f0eae62106592b9c8719d3f8ff9bd09f6d4f868a46b0acd0af"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.2165408, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "tmp/stg_microsoft_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__account_history_tmp.sql", "name": "stg_microsoft_ads__account_history_tmp", "alias": "stg_microsoft_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "f326243a07088f5fde31cda73d5ada38bc95edbb0acd6f20b1cc479d076eeeed"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.2226582, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_performance_daily_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__ad_daily_report_tmp", "alias": "stg_microsoft_ads__ad_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "4cf26ae811cd73631d86eee119cf79e71fd008b630b39e2e4d9bec63df999506"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "ad_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.268573, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_performance_daily_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "alias": "stg_microsoft_ads__ad_group_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "57f3f8acc0b43e57bba5c441bff246ada9d9ff8715098271628ac5122138dd0e"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "ad_group_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.278006, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_performance_daily_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "alias": "stg_microsoft_ads__keyword_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "ba23d7a4b13beac610573f8c6f8b5ba0ab4305b00e4453b7da4383c06062b9a7"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "keyword_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.287112, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "tmp/stg_microsoft_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "name": "stg_microsoft_ads__keyword_history_tmp", "alias": "stg_microsoft_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "3d52da52eb899f748854c603db39c3fc0971a2140d4515e10c9f41623cc3bd3c"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "keyword_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.295655, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "tmp/stg_microsoft_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "name": "stg_microsoft_ads__campaign_history_tmp", "alias": "stg_microsoft_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "c4a882096d8a71aaee29080771645afbd99d3f680b5575cc798abbeb0925291d"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.3053288, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_performance_daily_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__account_daily_report_tmp", "alias": "stg_microsoft_ads__account_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "f7861bfb9f1931e450f018bf995c5eb19f2f0a79efb7d426e69b28965d637aa5"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "account_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526935.313396, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report_tmp`"}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"raw_sql": "{{ 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 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.action_categories,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join advertiser\n on ad_groups.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(16) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__ad_group_report"], "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__ad_group_report.sql", "original_file_path": "models/tiktok_ads__ad_group_report.sql", "name": "tiktok_ads__ad_group_report", "alias": "tiktok_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "cd6f0250ddc693a683fb43b67c723a0f30c205465b44856b369764e593d0188a"}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly"], ["stg_tiktok_ads__ad_group_history"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the ad group level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.811507, "compiled_sql": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly`\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\naggregated as (\n\n select\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.action_categories,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join advertiser\n on ad_groups.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`"}, "model.tiktok_ads.tiktok_ads__url_report": {"raw_sql": "{{ 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 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.action_categories,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n\n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n {{ dbt_utils.group_by(26) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__url_report"], "unique_id": "model.tiktok_ads.tiktok_ads__url_report", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__url_report.sql", "original_file_path": "models/tiktok_ads__url_report.sql", "name": "tiktok_ads__url_report", "alias": "tiktok_ads__url_report", "checksum": {"name": "sha256", "checksum": "db53a257d4f238a8de29f52398d7382176008c2627f4831dc87b189bee9da91e"}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"], ["stg_tiktok_ads__ad_history"], ["stg_tiktok_ads__ad_group_history"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the URL level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.83794, "compiled_sql": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\naggregated as (\n\n select\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.action_categories,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n\n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\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\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`"}, "model.tiktok_ads.tiktok_ads__campaign_report": {"raw_sql": "{{ 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 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 left join advertiser\n on campaigns.advertiser_id = advertiser.advertiser_id\n {{ dbt_utils.group_by(6) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__campaign_report"], "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__campaign_report.sql", "original_file_path": "models/tiktok_ads__campaign_report.sql", "name": "tiktok_ads__campaign_report", "alias": "tiktok_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "e326da741a25ba4b3cdbeca8fb8e249c30cd5ef582be47077c14f4259804286f"}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly"], ["stg_tiktok_ads__campaign_history"], ["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the campaign level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "daily_daily_ctr": {"name": "daily_daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.820611, "compiled_sql": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\naggregated as (\n\n select\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 left join advertiser\n on campaigns.advertiser_id = advertiser.advertiser_id\n group by 1,2,3,4,5,6\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`"}, "model.tiktok_ads.tiktok_ads__ad_report": {"raw_sql": "{{ 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 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.action_categories,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(18) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__ad_report"], "unique_id": "model.tiktok_ads.tiktok_ads__ad_report", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__ad_report.sql", "original_file_path": "models/tiktok_ads__ad_report.sql", "name": "tiktok_ads__ad_report", "alias": "tiktok_ads__ad_report", "checksum": {"name": "sha256", "checksum": "ceee3ce54092049c327198fdc079ec337fa26661db48a8f976bc996997f8cac6"}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"], ["stg_tiktok_ads__ad_history"], ["stg_tiktok_ads__ad_group_history"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.798342, "compiled_sql": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n),\n\naggregated as (\n\n select\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.action_categories,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`"}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"raw_sql": "{{ 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 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 left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n {{ dbt_utils.group_by(4) }}\n\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__advertiser_report"], "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__advertiser_report.sql", "original_file_path": "models/tiktok_ads__advertiser_report.sql", "name": "tiktok_ads__advertiser_report", "alias": "tiktok_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "b78cce2d035af7c7214232ba2acd99a6ade4908ee71ce08fed3322fa380c08b4"}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the account level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__advertiser_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.784567, "compiled_sql": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n),\n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\njoined as (\n\n select\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 left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n group by 1,2,3,4\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`"}, "model.twitter_ads.twitter_ads__account_report": {"raw_sql": "{{ 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 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 group by 1,2,3\n\n),\n\nfinal as (\n\n select \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\n {{ dbt_utils.group_by(n=13) }}\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__account_report"], "unique_id": "model.twitter_ads.twitter_ads__account_report", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__account_report.sql", "original_file_path": "models/twitter_ads__account_report.sql", "name": "twitter_ads__account_report", "alias": "twitter_ads__account_report", "checksum": {"name": "sha256", "checksum": "16ac0265f5e3aa59cf06260bb446a6ef88d625c029d2e7298d44b9008c350fa9"}, "tags": [], "refs": [["stg_twitter_ads__account_history"], ["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the account level, within a placement in Twitter.\n", "columns": {"spend_micro": {"name": "spend_micro", "description": "The spend (in micros) for the account on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the account on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the account on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_switched_timestamp": {"name": "timezone_switched_timestamp", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.940109, "compiled_sql": "\n\nwith accounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n),\n\nrollup_report as (\n\n select \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\n\n),\n\nfinal as (\n\n select \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\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`"}, "model.twitter_ads.twitter_ads__campaign_report": {"raw_sql": "{{ 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.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 left join accounts\n on report.account_id = accounts.account_id\n\n {{ dbt_utils.group_by(n=19) }}\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__campaign_report"], "unique_id": "model.twitter_ads.twitter_ads__campaign_report", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__campaign_report.sql", "original_file_path": "models/twitter_ads__campaign_report.sql", "name": "twitter_ads__campaign_report", "alias": "twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "ac412006847147c6ef722fbf416456e8a94a3f0fee9eeed3b26a663e9820a3ab"}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "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": {"campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend on that date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The amount of spend, in micros, on that date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The number of URL clicks on that date.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The time the campaign will end", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "is_standard_delivery": {"name": "is_standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.919731, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nfinal as (\n\n select \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 left join accounts\n on report.account_id = accounts.account_id\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 final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`"}, "model.twitter_ads.twitter_ads__url_report": {"raw_sql": "{{ 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.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 left join tweet_url \n on promoted_tweets.tweet_id = tweet_url.tweet_id\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n \n where tweet_url.expanded_url is not null\n \n {{ dbt_utils.group_by(n=23) }}\n\n \n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__url_report"], "unique_id": "model.twitter_ads.twitter_ads__url_report", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__url_report.sql", "original_file_path": "models/twitter_ads__url_report.sql", "name": "twitter_ads__url_report", "alias": "twitter_ads__url_report", "checksum": {"name": "sha256", "checksum": "67da68ceb77ee2fcd4662bcf4c2f812d0bf856ee981854042ad6684cad31140d"}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"], ["stg_twitter_ads__line_item_history"], ["stg_twitter_ads__promoted_tweet_history"], ["stg_twitter_ads__tweet"], ["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend, in micros, for the tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The URL clicks for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.9682748, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`\n),\n\ntweet_url as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`\n where index = 0\n),\n\nfinal as (\n\n select \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 left join tweet_url \n on promoted_tweets.tweet_id = tweet_url.tweet_id\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n \n where tweet_url.expanded_url is not null\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)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`"}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"raw_sql": "{{ 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.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 left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n\n {{ dbt_utils.group_by(n=21) }}\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__promoted_tweet_report"], "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/twitter_ads__promoted_tweet_report.sql", "name": "twitter_ads__promoted_tweet_report", "alias": "twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "bfe92b3b7b4256289f1f52608543c3e81151c3e345dc27623c7e7658386058d6"}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"], ["stg_twitter_ads__line_item_history"], ["stg_twitter_ads__promoted_tweet_history"], ["stg_twitter_ads__tweet"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "The full text of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend, in micros, for the tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The URL clicks for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "promoted_tweet_status": {"name": "promoted_tweet_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the tweet's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_status": {"name": "line_item_status", "description": "The status of the tweet's line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__promoted_tweet_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.9568682, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`\n),\n\nfinal as (\n\n select \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 left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\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\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`"}, "model.twitter_ads.twitter_ads__line_item_report": {"raw_sql": "{{ 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.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 left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n\n {{ dbt_utils.group_by(n=29) }}\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__line_item_report"], "unique_id": "model.twitter_ads.twitter_ads__line_item_report", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__line_item_report.sql", "original_file_path": "models/twitter_ads__line_item_report.sql", "name": "twitter_ads__line_item_report", "alias": "twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "db0229d29cf1dbd5701d716465c399fe7be337436c2887f82fc25918d98ca90b"}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"], ["stg_twitter_ads__line_item_history"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "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": {"campaign_id": {"name": "campaign_id", "description": "The ID of the line item's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the line item's campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The name of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend on that date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The amount of spend, in micros, on that date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The number of URL clicks on that date.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_status": {"name": "line_item_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the line item's related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "target_cpa": {"name": "target_cpa", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__line_item_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1662526939.932827, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nfinal as (\n\n select \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 left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\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\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`"}, "model.pinterest.pinterest_ads__url_report": {"raw_sql": "{{ 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.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n\n -- We only want utm ads to populate this report. Therefore, we filter where url pins are populated.\n where pins.destination_url is not null\n {{ dbt_utils.group_by(22) }}\n)\n\nselect * \nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__url_report"], "unique_id": "model.pinterest.pinterest_ads__url_report", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__url_report.sql", "original_file_path": "models/pinterest_ads__url_report.sql", "name": "pinterest_ads__url_report", "alias": "pinterest_ads__url_report", "checksum": {"name": "sha256", "checksum": "c51e0537c52c4fd4989b302759c4b8258acf569fe25ffd4047d9377d881722bf"}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"], ["stg_pinterest_ads__pin_promotion_history"], ["stg_pinterest_ads__ad_group_history"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the advertiser, campaign, ad group, and url level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1662526940.0783381, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\n), \n\npins as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n\n -- We only want utm ads to populate this report. Therefore, we filter where url pins are populated.\n where pins.destination_url is not null\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 joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`"}, "model.pinterest.pinterest_ads__campaign_report": {"raw_sql": "{{ 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.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 left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__campaign_report"], "unique_id": "model.pinterest.pinterest_ads__campaign_report", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__campaign_report.sql", "original_file_path": "models/pinterest_ads__campaign_report.sql", "name": "pinterest_ads__campaign_report", "alias": "pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "80ef7572b29ea31a7e5866ad9a6e6bf99fc0055ef64e527a9173fa440acbdcbd"}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the advertiser and campaign level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1662526940.089066, "compiled_sql": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n),\n\nfields as (\n\n select\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 left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`"}, "model.pinterest.pinterest_ads__keyword_report": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\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.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 left join ad_groups\n on keywords.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__keyword_report"], "unique_id": "model.pinterest.pinterest_ads__keyword_report", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__keyword_report.sql", "original_file_path": "models/pinterest_ads__keyword_report.sql", "name": "pinterest_ads__keyword_report", "alias": "pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "0c8aed643c742107bb4abb54739f3859a8fbe68ea6082f8e7b5b814d3f36dc51"}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report"], ["stg_pinterest_ads__advertiser_history"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__ad_group_history"], ["stg_pinterest_ads__keyword_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of a keyword at the advertiser, campaign, ad group, and keyword level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword_value": {"name": "keyword_value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1662526940.097926, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\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 left join ad_groups\n on keywords.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`"}, "model.pinterest.pinterest_ads__advertiser_report": {"raw_sql": "{{ 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.date_day,\n advertisers.advertiser_name,\n report.advertiser_id,\n advertisers.advertiser_status,\n advertisers.currency_code,\n advertisers.country,\n advertisers.billing_type,\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 {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__advertiser_report"], "unique_id": "model.pinterest.pinterest_ads__advertiser_report", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__advertiser_report.sql", "original_file_path": "models/pinterest_ads__advertiser_report.sql", "name": "pinterest_ads__advertiser_report", "alias": "pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "c1636464f5742460c31c1f5e1c83fa0f21d4985eb7faae46b3fab94444f5c7d1"}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of an advertiser on the Pinterest Ads platform.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_status": {"name": "advertiser_status", "description": "Status of the advertiser account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code which the advertiser is set up using.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_type": {"name": "billing_type", "description": "The billing type of the advertiser. Will typically be CREDIT_CARD or INVOICE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__advertiser_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1662526940.092909, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.date_day,\n advertisers.advertiser_name,\n report.advertiser_id,\n advertisers.advertiser_status,\n advertisers.currency_code,\n advertisers.country,\n advertisers.billing_type,\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 group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`"}, "model.pinterest.pinterest_ads__pin_promotion_report": {"raw_sql": "{{ 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.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n\n {{ dbt_utils.group_by(15) }}\n)\n\nselect * \nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__pin_promotion_report"], "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/pinterest_ads__pin_promotion_report.sql", "name": "pinterest_ads__pin_promotion_report", "alias": "pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "2784c143da7bdc10c3f26c175533bf2a6b688624492925b0d95ebdded2a6c873"}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"], ["stg_pinterest_ads__pin_promotion_history"], ["stg_pinterest_ads__ad_group_history"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the advertiser, campaign, ad group, and pin level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Name of the pin.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "Status of the pin.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__pin_promotion_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1662526940.104403, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\n), \n\npins as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`"}, "model.pinterest.pinterest_ads__ad_group_report": {"raw_sql": "{{ 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.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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__ad_group_report"], "unique_id": "model.pinterest.pinterest_ads__ad_group_report", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__ad_group_report.sql", "original_file_path": "models/pinterest_ads__ad_group_report.sql", "name": "pinterest_ads__ad_group_report", "alias": "pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "d1304e8b32bec7251d7873aae88ed9f0bdbd754eda4fb64133ad79c8124906f6"}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report"], ["stg_pinterest_ads__advertiser_history"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the campaign, advertiser, and ad group level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Ad group creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1662526940.084529, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`"}, "model.google_ads.google_ads__keyword_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n criterions.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__keyword_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join criterions\n on stats.criterion_id = criterions.criterion_id\n left join ad_groups\n on criterions.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__keyword_report"], "unique_id": "model.google_ads.google_ads__keyword_report", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__keyword_report.sql", "original_file_path": "models/google_ads__keyword_report.sql", "name": "google_ads__keyword_report", "alias": "google_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "870db2f6365f35426d59288becfe4d2a961a59e4f96ffc5514f4604d72dfa3a9"}, "tags": [], "refs": [["stg_google_ads__keyword_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"], ["stg_google_ads__ad_group_history"], ["stg_google_ads__ad_group_criterion_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the ad group level for keywords.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "The unique identifier of the criterion being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of keyword ad being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the keyword ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The match type criteria used for the keyword ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The specific keyword text that is used.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.261909, "compiled_sql": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n criterions.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\n \n\n\n\n\n\n from stats\n left join criterions\n on stats.criterion_id = criterions.criterion_id\n left join ad_groups\n on criterions.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`"}, "model.google_ads.google_ads__campaign_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__campaign_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n {{ dbt_utils.group_by(8) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__campaign_report"], "unique_id": "model.google_ads.google_ads__campaign_report", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__campaign_report.sql", "original_file_path": "models/google_ads__campaign_report.sql", "name": "google_ads__campaign_report", "alias": "google_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "b0bd1cd3691181888cba6ff2c8247dade9fad09a62b433ccb75f3b8854a7275c"}, "tags": [], "refs": [["stg_google_ads__campaign_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of a campaign at the campaign/advertising_channel/advertising_channel_subtype level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.2557771, "compiled_sql": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.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\n \n\n\n\n\n\n from stats\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`"}, "model.google_ads.google_ads__url_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.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( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_source') }} , 'google') as utm_source,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_medium') }} , 'cpc') as utm_medium,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_campaign') }} , campaigns.campaign_name) as utm_campaign,\n coalesce( {{ dbt_utils.get_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__ad_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n\n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where ads.source_final_urls is not null\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__url_report"], "unique_id": "model.google_ads.google_ads__url_report", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__url_report.sql", "original_file_path": "models/google_ads__url_report.sql", "name": "google_ads__url_report", "alias": "google_ads__url_report", "checksum": {"name": "sha256", "checksum": "6459719e45c5e9de881ec2035baa6bee2c3c19f1b7442c00137be54caa5c06ab"}, "tags": [], "refs": [["stg_google_ads__ad_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"], ["stg_google_ads__ad_group_history"], ["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of URLs at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The unique identifier of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.233788, "compiled_sql": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.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\n \n\n\n\n\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n\n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where ads.source_final_urls is not null\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`"}, "model.google_ads.google_ads__ad_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__ad_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__ad_report"], "unique_id": "model.google_ads.google_ads__ad_report", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__ad_report.sql", "original_file_path": "models/google_ads__ad_report.sql", "name": "google_ads__ad_report", "alias": "google_ads__ad_report", "checksum": {"name": "sha256", "checksum": "9a1207dd98be2980e61f5c2121ed3a1fc7d8a1984b125fe1aaf46e9b1478347b"}, "tags": [], "refs": [["stg_google_ads__ad_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"], ["stg_google_ads__ad_group_history"], ["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The unique identifier of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The url which is displayed with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_final_urls": {"name": "source_final_urls", "description": "The final urls that are used within the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The status of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The type of the ad that is being served.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.250439, "compiled_sql": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.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\n \n\n\n\n\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`"}, "model.google_ads.google_ads__ad_group_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__ad_group_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__ad_group_report"], "unique_id": "model.google_ads.google_ads__ad_group_report", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__ad_group_report.sql", "original_file_path": "models/google_ads__ad_group_report.sql", "name": "google_ads__ad_group_report", "alias": "google_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "7f608fbc1b314740591eb4acc64fb45bc8303cefd50c850a31caecc33a8fad23"}, "tags": [], "refs": [["stg_google_ads__ad_group_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"], ["stg_google_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the ad group level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "The status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_type": {"name": "ad_group_type", "description": "The type of ad group which is serving ads.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.244052, "compiled_sql": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.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\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`"}, "model.google_ads.google_ads__account_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__account_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join accounts\n on stats.account_id = accounts.account_id\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__account_report"], "unique_id": "model.google_ads.google_ads__account_report", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__account_report.sql", "original_file_path": "models/google_ads__account_report.sql", "name": "google_ads__account_report", "alias": "google_ads__account_report", "checksum": {"name": "sha256", "checksum": "e16fa20ded7cc2a36a0a1eabe5ad1b0bdb16503068002078b640704ec7cc8bef"}, "tags": [], "refs": [["stg_google_ads__account_stats"], ["stg_google_ads__account_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the account level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone which the account is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.238345, "compiled_sql": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.date_day,\n accounts.account_name,\n accounts.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\n \n\n\n\n\n\n from stats\n left join accounts\n on stats.account_id = accounts.account_id\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`"}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"raw_sql": "{{ 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 from base\n\n), fields as (\n\n select\n id as creative_id,\n campaign_id,\n type,\n cast(version_tag as numeric) as version_tag,\n status,\n click_uri,\n call_to_action_label_type,\n cast(last_modified_time as {{ dbt_utils.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt_utils.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n), url_fields as (\n\n select \n *,\n {{ dbt_utils.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 {{ dbt_utils.get_url_parameter('click_uri', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('click_uri', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('click_uri', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('click_uri', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('click_uri', 'utm_term') }} as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__creative_history"], "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__creative_history.sql", "original_file_path": "models/stg_linkedin_ads__creative_history.sql", "name": "stg_linkedin_ads__creative_history", "alias": "stg_linkedin_ads__creative_history", "checksum": {"name": "sha256", "checksum": "f623694641968fd0e8a84f3c8c74b35ffd0fd57c884979b17208903f2aa0c4c6"}, "tags": [], "refs": [["stg_linkedin_ads__creative_history_tmp"], ["stg_linkedin_ads__creative_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a 'version' of a creative.", "columns": {"creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign the creative belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text with Sponsored Link to landing page on your site.\nSPONSORED_STATUS_UPDATE - Sponsored status update from a profile page.\nSPONSORED_INMAILS - Single message ad delivered to the member's inbox\nSPONSORED_MESSAGE - Conversation ad containing a tree of pre-determined messages delivered to the member's inbox\nSPONSORED_VIDEO - Sponsored videos.\nSPONSORED_UPDATE_CAROUSEL - Sponsored Carousels\nFOLLOW_COMPANY_V2 - Dynamic Follow Ad\nSPOTLIGHT_V2 - Dynamic Spotlight Ad\nJOBS_V2 - Dynamic Job Ad\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the creative.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "call_to_action_label_type": {"name": "call_to_action_label_type", "description": "The labeled call-to-action on this ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the cretive.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__creative_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526940.354367, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history_tmp`\n\n), macro as (\n\n select \n \n cast(null as \n string\n) as \n \n call_to_action_label_type\n \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 \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 status\n \n as \n \n status\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n from base\n\n), fields as (\n\n select\n id as creative_id,\n campaign_id,\n type,\n cast(version_tag as numeric) as version_tag,\n status,\n click_uri,\n call_to_action_label_type,\n cast(last_modified_time as \n timestamp\n) as last_modified_at,\n cast(created_time as \n timestamp\n) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n), url_fields as (\n\n select \n *,\n \n\n \n split(\n click_uri,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`"}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"raw_sql": "{{ 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 from base\n\n), fields as (\n\n select \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_utils.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt_utils.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt_utils.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt_utils.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_history"], "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__campaign_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_history.sql", "name": "stg_linkedin_ads__campaign_history", "alias": "stg_linkedin_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "2a540f81b3e6d15610578e763e2f6e0c6fe02a28e2b0c80fece47e1152649104"}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history_tmp"], ["stg_linkedin_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a 'version' of a campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign belongs to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526940.364137, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) 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 \n string\n) as \n \n creative_selection\n \n , \n cast(null as \n float64\n) as \n \n daily_budget_amount\n \n , \n cast(null as \n string\n) as \n \n daily_budget_currency_code\n \n , \n cast(null as \n string\n) 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 \n string\n) as \n \n locale_country\n \n , \n cast(null as \n string\n) as \n \n locale_language\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as \n string\n) as \n \n objective_type\n \n , \n cast(null as boolean) as \n \n offsite_delivery_enabled\n \n , \n cast(null as \n string\n) as \n \n optimization_target_type\n \n , \n cast(null as \n timestamp\n) as \n \n run_schedule_end\n \n , \n cast(null as \n timestamp\n) as \n \n run_schedule_start\n \n , \n cast(null as \n string\n) as \n \n status\n \n , \n cast(null as \n string\n) as \n \n type\n \n , \n cast(null as \n float64\n) as \n \n unit_cost_amount\n \n , \n cast(null as \n string\n) 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 from base\n\n), fields as (\n\n select \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 \n timestamp\n) as run_schedule_start_at,\n cast(run_schedule_end as \n timestamp\n) as run_schedule_end_at,\n cast(last_modified_time as \n timestamp\n) as last_modified_at,\n cast(created_time as \n timestamp\n) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": {"raw_sql": "{{ 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 from base\n),\n\nfields as (\n \n select \n {{ dbt_utils.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 {{ fivetran_utils.fill_pass_through_columns('linkedin_ads__campaign_passthrough_metrics') }}\n\n from macro\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_campaign_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_campaign"], "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_campaign.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "alias": "stg_linkedin_ads__ad_analytics_by_campaign", "checksum": {"name": "sha256", "checksum": "16da55a16031183f2ea16088288483b310aa52fae4b411eaa0040b828536e669"}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_campaign_tmp"], ["stg_linkedin_ads__ad_analytics_by_campaign_tmp"]], "sources": [], "metrics": [], "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 creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526940.347011, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfields as (\n \n select \n timestamp_trunc(\n cast(day as timestamp),\n day\n ) as date_day,\n campaign_id,\n clicks,\n impressions,\n \n cost_in_usd as cost\n \n\n \n\n\n\n\n\n from macro\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"raw_sql": "{{ 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 from base\n\n), fields as (\n\n select \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_utils.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt_utils.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt_utils.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt_utils.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_campaign_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_group_history"], "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__campaign_group_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_group_history.sql", "name": "stg_linkedin_ads__campaign_group_history", "alias": "stg_linkedin_ads__campaign_group_history", "checksum": {"name": "sha256", "checksum": "32f71d5e3d5e1e5d644910fc5f2ff848d47d5735727cf6e845aeb13e6dc9cf21"}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history_tmp"], ["stg_linkedin_ads__campaign_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a 'version' of a campaign group.", "columns": {"campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign group belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526940.368767, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) as \n \n run_schedule_end\n \n , \n cast(null as \n timestamp\n) as \n \n run_schedule_start\n \n , \n cast(null as \n string\n) as \n \n status\n \n \n\n\n from base\n\n), fields as (\n\n select \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 \n timestamp\n) as run_schedule_start_at,\n cast(run_schedule_end as \n timestamp\n) as run_schedule_end_at,\n cast(last_modified_time as \n timestamp\n) as last_modified_at,\n cast(created_time as \n timestamp\n) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`"}, "model.linkedin_source.stg_linkedin_ads__account_history": {"raw_sql": "{{ 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 from base\n\n), fields as (\n\n select \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_utils.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt_utils.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp", "model.linkedin_source.stg_linkedin_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__account_history"], "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__account_history.sql", "original_file_path": "models/stg_linkedin_ads__account_history.sql", "name": "stg_linkedin_ads__account_history", "alias": "stg_linkedin_ads__account_history", "checksum": {"name": "sha256", "checksum": "f17a77d24eec129aee7da0dcf73c3b595b93c7c324a08339f5a793a862e4fe2e"}, "tags": [], "refs": [["stg_linkedin_ads__account_history_tmp"], ["stg_linkedin_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a 'version' of an account.", "columns": {"account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526940.372938, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) as \n \n status\n \n , \n cast(null as \n string\n) as \n \n type\n \n , \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n from base\n\n), fields as (\n\n select \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 \n timestamp\n) as last_modified_at,\n cast(created_time as \n timestamp\n) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"raw_sql": "{{ 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 from base\n\n), fields as (\n\n select\n {{ dbt_utils.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 {{ fivetran_utils.fill_pass_through_columns('linkedin_ads__creative_passthrough_metrics') }}\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_creative_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_creative"], "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_creative.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_creative.sql", "name": "stg_linkedin_ads__ad_analytics_by_creative", "alias": "stg_linkedin_ads__ad_analytics_by_creative", "checksum": {"name": "sha256", "checksum": "69a6e735809508cf540f0063b6e905349395baf86a70c72faaef807829ae8c04"}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_creative_tmp"], ["stg_linkedin_ads__ad_analytics_by_creative_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_creative.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526940.3443599, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n from base\n\n), fields as (\n\n select\n timestamp_trunc(\n cast(day as timestamp),\n day\n ) as date_day,\n creative_id,\n clicks, \n impressions,\n \n cost_in_usd as cost\n \n\n \n\n\n\n\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('ad_analytics_by_creative') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.ad_analytics_by_creative"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_creative_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "alias": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "checksum": {"name": "sha256", "checksum": "b1140ca3ef37dcf51382d1d423a866f8e99ab568e995419aaa0d6cc46ba9e2c2"}, "tags": [], "refs": [], "sources": [["linkedin", "ad_analytics_by_creative"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526935.9004679, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_creative_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative_tmp`"}, "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_history_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "tmp/stg_linkedin_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "name": "stg_linkedin_ads__campaign_history_tmp", "alias": "stg_linkedin_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "cebe89ef38c2b2a3e4c78f3a30350598b00910af0597c348f07c9e2d29591441"}, "tags": [], "refs": [], "sources": [["linkedin", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526935.9084969, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history_tmp`"}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('account_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__account_history_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "tmp/stg_linkedin_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__account_history_tmp.sql", "name": "stg_linkedin_ads__account_history_tmp", "alias": "stg_linkedin_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "d7ffa4b7ad250c8643b99abf7d1ee1099a1b01e847424247f469fb8b49bac5b9"}, "tags": [], "refs": [], "sources": [["linkedin", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526935.9166138, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history_tmp`"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_group_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.campaign_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_group_history_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_linkedin_ads__campaign_group_history_tmp", "alias": "stg_linkedin_ads__campaign_group_history_tmp", "checksum": {"name": "sha256", "checksum": "704cfe15aec2c0f1de75b8c78a082b45ae6fa6a03198dc210d8eeacb8bd643b8"}, "tags": [], "refs": [], "sources": [["linkedin", "campaign_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526935.925601, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history_tmp`"}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('creative_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__creative_history_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "tmp/stg_linkedin_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "name": "stg_linkedin_ads__creative_history_tmp", "alias": "stg_linkedin_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "0b886b1ffe53a073e6123a79cc2dd4b0576178d82e38be84fddc1f70e8b3d0fc"}, "tags": [], "refs": [], "sources": [["linkedin", "creative_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526935.9334111, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history_tmp`"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_analytics_by_campaign') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.ad_analytics_by_campaign"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "alias": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "checksum": {"name": "sha256", "checksum": "03a126189ee0a2fe1d514ff02883403a1c9e8d8f9fe928262c338b61246cd7ef"}, "tags": [], "refs": [], "sources": [["linkedin", "ad_analytics_by_campaign"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1662526935.9411461, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_campaign_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign_tmp`"}, "model.facebook_ads.facebook_ads__url_report": {"raw_sql": "{{ 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.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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id \n where creatives.url is not null\n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__url_report"], "unique_id": "model.facebook_ads.facebook_ads__url_report", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__url_report.sql", "original_file_path": "models/facebook_ads__url_report.sql", "name": "facebook_ads__url_report", "alias": "facebook_ads__url_report", "checksum": {"name": "sha256", "checksum": "10c9e21c2dd8784f9e08d760bced13633256fa77a516234ee971c3c6d1aa97c6"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["int_facebook_ads__creative_history"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__ad_history"], ["stg_facebook_ads__ad_set_history"], ["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook ad at the URL level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the related ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the related ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "The name of the related creative.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.519048, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\ncreatives as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`int_facebook_ads__creative_history`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id \n where creatives.url is not null\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 joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`"}, "model.facebook_ads.facebook_ads__url_tags": {"raw_sql": "{{ 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 _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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads.get_url_tags_query"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__url_tags"], "unique_id": "model.facebook_ads.facebook_ads__url_tags", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__url_tags.sql", "original_file_path": "models/facebook_ads__url_tags.sql", "name": "facebook_ads__url_tags", "alias": "facebook_ads__url_tags", "checksum": {"name": "sha256", "checksum": "94dcb7faf1441b289fcec62f3e81794a05a34cf10bf2955e8a8f8c18555f8ad2"}, "tags": [], "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "description": "Each record is a unique combination of creative_id and corresponding key, value, type contained in the url_tags field", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "The unique fivetran ID for this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The associated creative_id for this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "key": {"name": "key", "description": "The url tag object name e.g. utm_source associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The value assigned to the url tag object associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type assigned to the url tag object e.g. 'AD_VIDEO'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_tags.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.538809, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`\n where is_most_recent_record = true\n), \n\nrequired_fields as (\n\n select\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 _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 _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 _fivetran_id,\n creative_id,\n json_extract_scalar(url_tag_element, '$.key') as key,\n json_extract_scalar(url_tag_element, '$.value') as value,\n json_extract_scalar(url_tag_element, '$.type') as type\n from unnested\n )\n\n \n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_tags`"}, "model.facebook_ads.facebook_ads__campaign_report": {"raw_sql": "{{ 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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__campaign_report"], "unique_id": "model.facebook_ads.facebook_ads__campaign_report", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__campaign_report.sql", "original_file_path": "models/facebook_ads__campaign_report.sql", "name": "facebook_ads__campaign_report", "alias": "facebook_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "4bec447c9d29e7a26180ce14a68d0a1217d60f0d24bed7c89716b3520c053a75"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__campaign_history"], ["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook campaign.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.533335, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`"}, "model.facebook_ads.facebook_ads__account_report": {"raw_sql": "{{ 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.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 {{ dbt_utils.group_by(8) }}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__account_report"], "unique_id": "model.facebook_ads.facebook_ads__account_report", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__account_report.sql", "original_file_path": "models/facebook_ads__account_report.sql", "name": "facebook_ads__account_report", "alias": "facebook_ads__account_report", "checksum": {"name": "sha256", "checksum": "845cdb5118e536d66d515c2e11eee71d380e406ba4f443bae4828ec70362841e"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.536112, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`"}, "model.facebook_ads.facebook_ads__ad_report": {"raw_sql": "{{ 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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__ad_report"], "unique_id": "model.facebook_ads.facebook_ads__ad_report", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__ad_report.sql", "original_file_path": "models/facebook_ads__ad_report.sql", "name": "facebook_ads__ad_report", "alias": "facebook_ads__ad_report", "checksum": {"name": "sha256", "checksum": "36088a9abc521347aacc7d9bf0f56fd712441e94a2bc66ef334f85ff8f4761ea"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__campaign_history"], ["stg_facebook_ads__ad_set_history"], ["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook ad.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the related ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the related ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.524993, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`"}, "model.facebook_ads.facebook_ads__ad_set_report": {"raw_sql": "{{ 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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__ad_set_report"], "unique_id": "model.facebook_ads.facebook_ads__ad_set_report", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__ad_set_report.sql", "original_file_path": "models/facebook_ads__ad_set_report.sql", "name": "facebook_ads__ad_set_report", "alias": "facebook_ads__ad_set_report", "checksum": {"name": "sha256", "checksum": "d1b0e28fe240e405fe8f746c38d4fad26a8d43e10dcd6f375617b78095f87e01"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__campaign_history"], ["stg_facebook_ads__ad_set_history"], ["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook ad set.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_set_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.529697, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`"}, "model.facebook_ads.int_facebook_ads__creative_history": {"raw_sql": "{{ 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 _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\n\n), \n\nfields as (\n\n select\n base._fivetran_id,\n base.creative_id,\n base.account_id,\n base.creative_name,\n {{ url_field }} as url,\n {{ dbt_utils.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, {{ dbt_utils.get_url_parameter(url_field, 'utm_source') }}) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, {{ dbt_utils.get_url_parameter(url_field, 'utm_medium') }}) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, {{ dbt_utils.get_url_parameter(url_field, 'utm_campaign') }}) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, {{ dbt_utils.get_url_parameter(url_field, 'utm_content') }}) as utm_content,\n coalesce(url_tags_pivoted.utm_term, {{ dbt_utils.get_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.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history", "model.facebook_ads.facebook_ads__url_tags"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "intermediate", "int_facebook_ads__creative_history"], "unique_id": "model.facebook_ads.int_facebook_ads__creative_history", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "intermediate/int_facebook_ads__creative_history.sql", "original_file_path": "models/intermediate/int_facebook_ads__creative_history.sql", "name": "int_facebook_ads__creative_history", "alias": "int_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "8ae43e8b153e019583a0b862ba65491fe953552c9a51ab478c545a8b52ef1d65"}, "tags": [], "refs": [["stg_facebook_ads__creative_history"], ["facebook_ads__url_tags"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/intermediate/int_facebook_ads__creative_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "view", "enabled": true}, "created_at": 1662526936.1047301, "compiled_sql": "\n\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_tags`\n), \n\nurl_tags_pivoted as (\n\n select \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\n\n), \n\nfields as (\n\n select\n base._fivetran_id,\n base.creative_id,\n base.account_id,\n base.creative_name,\n coalesce(page_link,template_page_link) as url,\n \n\n \n split(\n coalesce(page_link,template_page_link),\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base._fivetran_id = url_tags_pivoted._fivetran_id\n and base.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`int_facebook_ads__creative_history`"}, "model.snapchat_ads.snapchat_ads__ad_report": {"raw_sql": "{{ 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 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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join account\n on creatives.ad_account_id = account.ad_account_id\n \n {{ dbt_utils.group_by(6) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__ad_report"], "unique_id": "model.snapchat_ads.snapchat_ads__ad_report", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__ad_report.sql", "original_file_path": "models/snapchat_ads__ad_report.sql", "name": "snapchat_ads__ad_report", "alias": "snapchat_ads__ad_report", "checksum": {"name": "sha256", "checksum": "883a24dba7248457561b24e845d2e8beec4fd361a2a8aef051b5cb01305f48fe"}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"], ["snapchat_ads__creative_history_prep"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Snapchat ad account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.612401, "compiled_sql": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n),ad_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\n where is_most_recent_record = true\n\n), aggregated as (\n\n select\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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join account\n on creatives.ad_account_id = account.ad_account_id\n \n group by 1,2,3,4,5,6\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`"}, "model.snapchat_ads.snapchat_ads__url_report": {"raw_sql": "{{ 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 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 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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join account\n on creatives.ad_account_id = account.ad_account_id\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 {{ dbt_utils.group_by(14) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__url_report"], "unique_id": "model.snapchat_ads.snapchat_ads__url_report", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__url_report.sql", "original_file_path": "models/snapchat_ads__url_report.sql", "name": "snapchat_ads__url_report", "alias": "snapchat_ads__url_report", "checksum": {"name": "sha256", "checksum": "93f0566f1d7ac1e43142e137c3453bfde44a9eba0454e0ca8f69a132c8512e69"}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"], ["snapchat_ads__creative_history_prep"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__ad_history"], ["stg_snapchat_ads__ad_squad_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of Snapchat ads that leverage urls.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.62782, "compiled_sql": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n),ad_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\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 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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join account\n on creatives.ad_account_id = account.ad_account_id\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 group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`"}, "model.snapchat_ads.snapchat_ads__account_report": {"raw_sql": "{{ 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 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 left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n\n {{ dbt_utils.group_by(4) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__account_report"], "unique_id": "model.snapchat_ads.snapchat_ads__account_report", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__account_report.sql", "original_file_path": "models/snapchat_ads__account_report.sql", "name": "snapchat_ads__account_report", "alias": "snapchat_ads__account_report", "checksum": {"name": "sha256", "checksum": "712da861e6b20cf879f1f5c936329cbfaf3a0e98728c707d692405b5629df197"}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__ad_history"], ["stg_snapchat_ads__ad_squad_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Snapchat ad account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.6083999, "compiled_sql": "\n\nwith ad_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\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 left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n\n group by 1,2,3,4\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`"}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"raw_sql": "{{ 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 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 left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n \n {{ dbt_utils.group_by(8) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__ad_squad_report"], "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__ad_squad_report.sql", "original_file_path": "models/snapchat_ads__ad_squad_report.sql", "name": "snapchat_ads__ad_squad_report", "alias": "snapchat_ads__ad_squad_report", "checksum": {"name": "sha256", "checksum": "6d33fd85d1fc074fd8ba3f52b028d3b6f97d8e33c77bcd1fa5795527170a065a"}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__ad_squad_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Snapchat ad squad.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_squad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.620951, "compiled_sql": "\n\nwith ad_squad_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\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 left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n \n group by 1,2,3,4,5,6,7,8\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`"}, "model.snapchat_ads.snapchat_ads__campaign_report": {"raw_sql": "{{ 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 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 left join account\n on campaigns.ad_account_id = account.ad_account_id\n \n {{ dbt_utils.group_by(6) }}\n\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__campaign_report"], "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__campaign_report.sql", "original_file_path": "models/snapchat_ads__campaign_report.sql", "name": "snapchat_ads__campaign_report", "alias": "snapchat_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "37a0ae79a3b9a6455f3c7f6d5c83ca1ab54ae0fc2b2c103c981a43e0744fdc88"}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Snapchat campaign.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.6163929, "compiled_sql": "\n\nwith campaign_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\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 left join account\n on campaigns.ad_account_id = account.ad_account_id\n \n group by 1,2,3,4,5,6\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`"}, "model.snapchat_ads.snapchat_ads__creative_history_prep": {"raw_sql": "{{ 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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n {{ dbt_utils.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, {{ dbt_utils.get_url_parameter('base.url', 'utm_source') }}) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, {{ dbt_utils.get_url_parameter('base.url', 'utm_medium') }}) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, {{ dbt_utils.get_url_parameter('base.url', 'utm_campaign') }}) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, {{ dbt_utils.get_url_parameter('base.url', 'utm_content') }}) as utm_content,\n coalesce(url_tags_pivoted.utm_term, {{ dbt_utils.get_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\n)\n\nselect *\nfrom fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "intermediate", "snapchat_ads__creative_history_prep"], "unique_id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "intermediate/snapchat_ads__creative_history_prep.sql", "original_file_path": "models/intermediate/snapchat_ads__creative_history_prep.sql", "name": "snapchat_ads__creative_history_prep", "alias": "snapchat_ads__creative_history_prep", "checksum": {"name": "sha256", "checksum": "9c74fb20c4946336930dc47441e208429f3e23b6a066ff0ee0a57d9e186f461d"}, "tags": [], "refs": [["stg_snapchat_ads__creative_history"], ["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/intermediate/snapchat_ads__creative_history_prep.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "ephemeral", "enabled": true}, "created_at": 1662526936.2190561, "compiled_sql": "\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select\n customer_id as account_id, \n date as date_day, \n cast(id as {{ dbt_utils.type_string() }}) as ad_group_id, \n campaign_id, \n device,\n ad_network_type,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__ad_group_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_group_stats"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_group_stats.sql", "original_file_path": "models/stg_google_ads__ad_group_stats.sql", "name": "stg_google_ads__ad_group_stats", "alias": "stg_google_ads__ad_group_stats", "checksum": {"name": "sha256", "checksum": "ff340e8fdd90ef554efa107f80a6a328add2c814ba404cba67ec7d262bcca783"}, "tags": [], "refs": [["stg_google_ads__ad_group_stats_tmp"], ["stg_google_ads__ad_group_stats_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of an ad group in Google Ads broken down to the ad network and device type.", "columns": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.7260091, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select\n customer_id as account_id, \n date as date_day, \n cast(id as \n string\n) as ad_group_id, \n campaign_id, \n device,\n ad_network_type,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`"}, "model.google_ads_source.stg_google_ads__account_stats": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day,\n ad_network_type,\n device,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__account_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_account_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats_tmp", "model.google_ads_source.stg_google_ads__account_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__account_stats"], "unique_id": "model.google_ads_source.stg_google_ads__account_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__account_stats.sql", "original_file_path": "models/stg_google_ads__account_stats.sql", "name": "stg_google_ads__account_stats", "alias": "stg_google_ads__account_stats", "checksum": {"name": "sha256", "checksum": "ab5bb273d256a42be530160f2c20aa597ff974ad43e5fdbd20046f6f0699ef7f"}, "tags": [], "refs": [["stg_google_ads__account_stats_tmp"], ["stg_google_ads__account_stats_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of an account in Google Ads broken down to the ad network and device type.", "columns": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.737679, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day,\n ad_network_type,\n device,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`"}, "model.google_ads_source.stg_google_ads__ad_group_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.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 id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history_tmp", "model.google_ads_source.stg_google_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_group_history"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_group_history.sql", "original_file_path": "models/stg_google_ads__ad_group_history.sql", "name": "stg_google_ads__ad_group_history", "alias": "stg_google_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "214aad514e0f9d177480048edeff8df92a2ba03ccb11e534d9d479729a6c07f2"}, "tags": [], "refs": [["stg_google_ads__ad_group_history_tmp"], ["stg_google_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an ad group in Google Ads.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_type": {"name": "ad_group_type", "description": "The type of the ad group in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.699965, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n string\n) 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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_history`"}, "model.google_ads_source.stg_google_ads__ad_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n cast(ad_group_id as {{ dbt_utils.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 id, ad_group_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\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_utils.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_utils.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 {{ dbt_utils.get_url_parameter('final_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('final_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('final_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('final_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('final_url', 'utm_term') }} as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history_tmp", "model.google_ads_source.stg_google_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_history"], "unique_id": "model.google_ads_source.stg_google_ads__ad_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_history.sql", "original_file_path": "models/stg_google_ads__ad_history.sql", "name": "stg_google_ads__ad_history", "alias": "stg_google_ads__ad_history", "checksum": {"name": "sha256", "checksum": "f7890632b4c9b50e2f24af70746c04236154f6fa053d475ab3de00673b2e1fde"}, "tags": [], "refs": [["stg_google_ads__ad_history_tmp"], ["stg_google_ads__ad_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The display url of the ad that is being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The type of the ad in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "Status of the Ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.707798, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(ad_group_id as \n string\n) 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 id, ad_group_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n),\n\nfinal_urls as (\n\n select \n *,\n --Extract the first url within the list of urls provided within the final_urls field\n \n\n \n split(\n final_urls,\n ','\n )[safe_offset(0)]\n \n\n as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n \n\n \n split(\n final_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n final_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`"}, "model.google_ads_source.stg_google_ads__keyword_stats": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n _fivetran_id as keyword_id,\n customer_id as account_id, \n date as date_day, \n cast(ad_group_id as {{ dbt_utils.type_string() }}) as ad_group_id,\n ad_group_criterion_criterion_id as criterion_id,\n campaign_id, \n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__keyword_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_keyword_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats_tmp", "model.google_ads_source.stg_google_ads__keyword_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__keyword_stats"], "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__keyword_stats.sql", "original_file_path": "models/stg_google_ads__keyword_stats.sql", "name": "stg_google_ads__keyword_stats", "alias": "stg_google_ads__keyword_stats", "checksum": {"name": "sha256", "checksum": "a830e91a86172951723aa343c40dab2e5d5df423d98986d1b401c087352a3bef"}, "tags": [], "refs": [["stg_google_ads__keyword_stats_tmp"], ["stg_google_ads__keyword_stats_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a keyword in Google Ads.", "columns": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The unique ID of the keyword record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "Reference to the ad group criterion used for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__keyword_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.734215, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n _fivetran_id as keyword_id,\n customer_id as account_id, \n date as date_day, \n cast(ad_group_id as \n string\n) as ad_group_id,\n ad_group_criterion_criterion_id as criterion_id,\n campaign_id, \n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`"}, "model.google_ads_source.stg_google_ads__ad_stats": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day, \n {% if target.type == 'spark' %}\n coalesce(cast(ad_group_id as {{ dbt_utils.type_string() }}), split(ad_group,'adGroups/')[1]) as ad_group_id,\n {% else %}\n coalesce(cast(ad_group_id as {{ dbt_utils.type_string() }}), {{ dbt_utils.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 clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__ad_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string", "macro.dbt_utils.split_part", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats_tmp", "model.google_ads_source.stg_google_ads__ad_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_stats"], "unique_id": "model.google_ads_source.stg_google_ads__ad_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_stats.sql", "original_file_path": "models/stg_google_ads__ad_stats.sql", "name": "stg_google_ads__ad_stats", "alias": "stg_google_ads__ad_stats", "checksum": {"name": "sha256", "checksum": "e817b26774230a69638f8d2f170ce8f341cc218a68937336a12184a2c4740ab1"}, "tags": [], "refs": [["stg_google_ads__ad_stats_tmp"], ["stg_google_ads__ad_stats_tmp"]], "sources": [], "metrics": [], "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": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.7125702, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day, \n \n coalesce(cast(ad_group_id as \n string\n), \n\n \n split(\n ad_group,\n 'adGroups/'\n )[safe_offset(1)]\n \n\n) as ad_group_id,\n \n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n id as criterion_id,\n cast(ad_group_id as {{ dbt_utils.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 id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_criterion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp", "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_group_criterion_history"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_group_criterion_history.sql", "original_file_path": "models/stg_google_ads__ad_group_criterion_history.sql", "name": "stg_google_ads__ad_group_criterion_history", "alias": "stg_google_ads__ad_group_criterion_history", "checksum": {"name": "sha256", "checksum": "81f24fde65690bba93cf8abfcc843f512ffea96e7ad37db7fde2096553f07c03"}, "tags": [], "refs": [["stg_google_ads__ad_group_criterion_history_tmp"], ["stg_google_ads__ad_group_criterion_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a historical version of an ad group criterion in Google Ads.", "columns": {"criterion_id": {"name": "criterion_id", "description": "Unique identifier of the ad group criterion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_campaign_id": {"name": "base_campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of ad group criterion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group criterion.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_criterion_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.721696, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n from base\n),\n\nfinal as (\n \n select \n id as criterion_id,\n cast(ad_group_id as \n string\n) 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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_criterion_history`"}, "model.google_ads_source.stg_google_ads__campaign_stats": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day, \n id as campaign_id, \n ad_network_type,\n device,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__campaign_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_campaign_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats_tmp", "model.google_ads_source.stg_google_ads__campaign_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__campaign_stats"], "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__campaign_stats.sql", "original_file_path": "models/stg_google_ads__campaign_stats.sql", "name": "stg_google_ads__campaign_stats", "alias": "stg_google_ads__campaign_stats", "checksum": {"name": "sha256", "checksum": "4d8f1522db5e641f065131caf87cc3d4bb2895837d1da1adb9373e6f6e3187a3"}, "tags": [], "refs": [["stg_google_ads__campaign_stats_tmp"], ["stg_google_ads__campaign_stats_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a campaign in Google Ads broken down to the ad network and device type.", "columns": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.729939, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day, \n id as campaign_id, \n ad_network_type,\n device,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`"}, "model.google_ads_source.stg_google_ads__campaign_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history_tmp", "model.google_ads_source.stg_google_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__campaign_history"], "unique_id": "model.google_ads_source.stg_google_ads__campaign_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__campaign_history.sql", "original_file_path": "models/stg_google_ads__campaign_history.sql", "name": "stg_google_ads__campaign_history", "alias": "stg_google_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "48aacc738e5cbe391f544a5e16f40107b193fb5e84e3b7f1a3673cfe51e42bed"}, "tags": [], "refs": [["stg_google_ads__campaign_history_tmp"], ["stg_google_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a campaign in Google Ads.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "Status of the ads and how they are currently being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "General status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.717831, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history`"}, "model.google_ads_source.stg_google_ads__account_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.google_ads_source.stg_google_ads__account_history_tmp", "model.google_ads_source.stg_google_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__account_history"], "unique_id": "model.google_ads_source.stg_google_ads__account_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__account_history.sql", "original_file_path": "models/stg_google_ads__account_history.sql", "name": "stg_google_ads__account_history", "alias": "stg_google_ads__account_history", "checksum": {"name": "sha256", "checksum": "343005eab065e14bf0ee42e8efc615b9397add7d783d1e2e77158d2781f253bb"}, "tags": [], "refs": [["stg_google_ads__account_history_tmp"], ["stg_google_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an account in Google Ads.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency of the spend reported.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone of the account ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526940.69633, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`"}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_stats') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.account_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__account_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_stats_tmp.sql", "name": "stg_google_ads__account_stats_tmp", "alias": "stg_google_ads__account_stats_tmp", "checksum": {"name": "sha256", "checksum": "64986ed4826b8e88bc9cbc3bde6840448bc855e6084bc3d12da016addb34dafa"}, "tags": [], "refs": [], "sources": [["google_ads", "account_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.484452, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats_tmp`"}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_google_ads__ad_group_history_tmp", "alias": "stg_google_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "663aad714cdf84b0a06475835364f36ffca4392b342ce434ea9ac3b38b96e548"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.492921, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_history_tmp`"}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_stats') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.campaign_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__campaign_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_stats_tmp.sql", "name": "stg_google_ads__campaign_stats_tmp", "alias": "stg_google_ads__campaign_stats_tmp", "checksum": {"name": "sha256", "checksum": "ac4bf76095a969b6cc66bdfc6bf1e53e555be2fee1eb08c867e0489a910ab491"}, "tags": [], "refs": [], "sources": [["google_ads", "campaign_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.503673, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats_tmp`"}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_stats') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__ad_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_stats_tmp.sql", "name": "stg_google_ads__ad_stats_tmp", "alias": "stg_google_ads__ad_stats_tmp", "checksum": {"name": "sha256", "checksum": "69fac90225ad40ce593bc7a83bea96739e0018b2d4b90c4dd7be0555b980c316"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.516005, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats_tmp`"}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_history_tmp.sql", "name": "stg_google_ads__campaign_history_tmp", "alias": "stg_google_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "1ca8c796342ffe6e1c664697a81bbe0787b3999df6e155e114aabb3f85df6ac6"}, "tags": [], "refs": [], "sources": [["google_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.526495, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history_tmp`"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_criterion_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_criterion_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_criterion_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_google_ads__ad_group_criterion_history_tmp", "alias": "stg_google_ads__ad_group_criterion_history_tmp", "checksum": {"name": "sha256", "checksum": "82cd3b85a00f84d6433d30fb5a2c6b6882381c4200bdad44fd5a761219418b48"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_group_criterion_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.5366, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_criterion_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_criterion_history_tmp`"}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_stats') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_google_ads__ad_group_stats_tmp", "alias": "stg_google_ads__ad_group_stats_tmp", "checksum": {"name": "sha256", "checksum": "df5f65c5bda3d22cada3c02ded54c4eb2a7e13ef2f1bc6169fed1f0c03fe761e"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_group_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.547959, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats_tmp`"}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_stats') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.keyword_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__keyword_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__keyword_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__keyword_stats_tmp.sql", "name": "stg_google_ads__keyword_stats_tmp", "alias": "stg_google_ads__keyword_stats_tmp", "checksum": {"name": "sha256", "checksum": "4568538a6402c68eb5e94f0e9f17373b8473723218597ad8990553524dc31691"}, "tags": [], "refs": [], "sources": [["google_ads", "keyword_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__keyword_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.557226, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_keyword_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats_tmp`"}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_history_tmp.sql", "name": "stg_google_ads__ad_history_tmp", "alias": "stg_google_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "237e4cca801b026f9d0aaeff2130bf3d2f3c9050e364406b5b59ba18db547166"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.566828, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history_tmp`"}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_history_tmp.sql", "name": "stg_google_ads__account_history_tmp", "alias": "stg_google_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "b5f8dd1b72ffdcf3bd32a1c0ab81a33aed0f43b042998b6d9cf57605a4226386"}, "tags": [], "refs": [], "sources": [["google_ads", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526936.5780501, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history_tmp`"}, "model.apple_search_ads.apple_search_ads__ad_report": {"raw_sql": "{{ 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.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 join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n join campaign \n on report.campaign_id = campaign.campaign_id\n join organization \n on ad.organization_id = organization.organization_id\n {{ dbt_utils.group_by(11) }}\n)\n\nselect * \nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__ad_report"], "unique_id": "model.apple_search_ads.apple_search_ads__ad_report", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__ad_report.sql", "original_file_path": "models/apple_search_ads__ad_report.sql", "name": "apple_search_ads__ad_report", "alias": "apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "9be99b8581d2c85b4b11327ae3eef34d26121ed866e5762ff7f627b2c24b63a9"}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"], ["stg_apple_search_ads__ad_history"], ["stg_apple_search_ads__ad_group_history"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each ad.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The status of the ad associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on ad group on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of ad group in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on ad group in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.936903, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\n), \n\nad as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n join campaign \n on report.campaign_id = campaign.campaign_id\n join organization \n on ad.organization_id = organization.organization_id\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`"}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"raw_sql": "{{ 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.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 join campaign \n on ad_group.campaign_id = campaign.campaign_id\n join organization \n on ad_group.organization_id = organization.organization_id\n {{ dbt_utils.group_by(11) }}\n)\n\nselect * \nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__ad_group_report"], "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__ad_group_report.sql", "original_file_path": "models/apple_search_ads__ad_group_report.sql", "name": "apple_search_ads__ad_group_report", "alias": "apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "a1edd5d4e81de3dadca268c67fc1bee311cab1edc7efe48a494c7017c7acdc80"}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report"], ["stg_apple_search_ads__ad_group_history"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each ad group.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The start timestamp for this ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The end timestamp for this ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on ad group on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of ad group in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on ad group in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1662526940.929306, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report`\n), \n\nad_group as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join campaign \n on ad_group.campaign_id = campaign.campaign_id\n join organization \n on ad_group.organization_id = organization.organization_id\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`"}, "model.apple_search_ads.apple_search_ads__keyword_report": {"raw_sql": "{{ 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.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 join ad_group \n on keyword.ad_group_id = ad_group.ad_group_id\n join campaign \n on ad_group.campaign_id = campaign.campaign_id\n join organization \n on ad_group.organization_id = organization.organization_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect * \nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__keyword_report"], "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__keyword_report.sql", "original_file_path": "models/apple_search_ads__keyword_report.sql", "name": "apple_search_ads__keyword_report", "alias": "apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "91250ca8167dc8fee98582ff093d56a498b854e5c66a51325076191016bfb0e7"}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report"], ["stg_apple_search_ads__keyword_history"], ["stg_apple_search_ads__ad_group_history"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each creative set.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Creative set name associatd with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "Creative set ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_status": {"name": "keyword_status", "description": "The status of the keyword associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on keyword on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of keyword in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on keyword in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1662526941.0141609, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\n), \n\nkeyword as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join ad_group \n on keyword.ad_group_id = ad_group.ad_group_id\n join campaign \n on ad_group.campaign_id = campaign.campaign_id\n join organization \n on ad_group.organization_id = organization.organization_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`"}, "model.apple_search_ads.apple_search_ads__search_term_report": {"raw_sql": "{{ 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.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 join organization \n on campaign.organization_id = organization.organization_id\n where report.search_term_text is not null\n {{ dbt_utils.group_by(12) }}\n)\n\nselect * \nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__search_term_report"], "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__search_term_report.sql", "original_file_path": "models/apple_search_ads__search_term_report.sql", "name": "apple_search_ads__search_term_report", "alias": "apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "4827d710dac6b2e632dcf3ba421a8166d719d1ae59e98128736b8689cf4039a1"}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each search term, only includes records with search term values.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "Search term text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on organization on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of organization in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on organization in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__search_term_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1662526941.0280151, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__search_term_report`\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join organization \n on campaign.organization_id = organization.organization_id\n where report.search_term_text is not null\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`"}, "model.apple_search_ads.apple_search_ads__campaign_report": {"raw_sql": "{{ 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.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 join organization \n on campaign.organization_id = organization.organization_id\n {{ dbt_utils.group_by(9) }}\n)\n\nselect * \nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__campaign_report"], "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__campaign_report.sql", "original_file_path": "models/apple_search_ads__campaign_report.sql", "name": "apple_search_ads__campaign_report", "alias": "apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "d555ffbfe1f914afd50ba592ab961f1ebdb40a4d4315c0696f1c80738930080f"}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each campaign.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the campaign associted with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The start timestamp of this campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The end timestamp of this campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on campaign on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of campaign in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on campaign in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1662526941.003561, "compiled_sql": "\n\nwith report as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\n\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n\n), \n\njoined as (\n\n select \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 join organization \n on campaign.organization_id = organization.organization_id\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`"}, "model.apple_search_ads.apple_search_ads__organization_report": {"raw_sql": "{{ 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.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 join organization \n on campaign.organization_id = organization.organization_id\n {{ dbt_utils.group_by(4) }}\n)\n\nselect * \nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__organization_report"], "unique_id": "model.apple_search_ads.apple_search_ads__organization_report", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__organization_report.sql", "original_file_path": "models/apple_search_ads__organization_report.sql", "name": "apple_search_ads__organization_report", "alias": "apple_search_ads__organization_report", "checksum": {"name": "sha256", "checksum": "47084fe8809edaeeda722e20590b19c6488687d05ad654b8fef4a0021088e0a2"}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each organization.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on organization on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of organization in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on organization in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__organization_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1662526941.0197718, "compiled_sql": "\n\nwith report as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join organization \n on campaign.organization_id = organization.organization_id\n group by 1,2,3,4\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`"}, "model.ad_reporting.ad_reporting__campaign_report": {"raw_sql": "{% 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 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 from base\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__campaign_report"], "unique_id": "model.ad_reporting.ad_reporting__campaign_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__campaign_report.sql", "original_file_path": "models/ad_reporting__campaign_report.sql", "name": "ad_reporting__campaign_report", "alias": "ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "2483fb7d8542d9dea58ad86c4e2821501bf104c2f6802e7c4f74baea277ce39c"}, "tags": [], "refs": [["int_ad_reporting__campaign_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "ad_reporting://models/ad_reporting.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1662526941.168639, "compiled_sql": "\n\n\nwith __dbt__cte__int_ad_reporting__campaign_report as (\n\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\nunioned as (\n\n \n\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\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 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 from base\n group by 1,2,3,4,5,6\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__campaign_report`"}, "model.ad_reporting.ad_reporting__account_report": {"raw_sql": "{% 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 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 from base\n {{ dbt_utils.group_by(4) }}\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__account_report"], "unique_id": "model.ad_reporting.ad_reporting__account_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__account_report.sql", "original_file_path": "models/ad_reporting__account_report.sql", "name": "ad_reporting__account_report", "alias": "ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "7a5c7e7a4d03a8a074b5e23154de600f7dfa06931055665906e407e2eaad8a8a"}, "tags": [], "refs": [["int_ad_reporting__account_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "ad_reporting://models/ad_reporting.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1662526941.148226, "compiled_sql": "\n\n\nwith __dbt__cte__int_ad_reporting__account_report as (\n\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\nunioned as (\n\n \n\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\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 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 from base\n group by 1,2,3,4\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__account_report`"}, "model.ad_reporting.ad_reporting__ad_group_report": {"raw_sql": "{% 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 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 from base\n {{ dbt_utils.group_by(8) }}\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__ad_group_report"], "unique_id": "model.ad_reporting.ad_reporting__ad_group_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__ad_group_report.sql", "original_file_path": "models/ad_reporting__ad_group_report.sql", "name": "ad_reporting__ad_group_report", "alias": "ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "fe93b1aa6e8cc66827b9b6ed209113e7af61fa090c025adc18a657278c4fc15b"}, "tags": [], "refs": [["int_ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "ad_reporting://models/ad_reporting.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1662526941.1543832, "compiled_sql": "\n\n\nwith __dbt__cte__int_ad_reporting__ad_group_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(ad_squad_id as \n string\n) as ad_group_id \n ,cast(ad_squad_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\nunioned as (\n\n \n\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\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 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 from base\n group by 1,2,3,4,5,6,7,8\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(ad_squad_id as \n string\n) as ad_group_id \n ,cast(ad_squad_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_group_report`"}, "model.ad_reporting.ad_reporting__search_report": {"raw_sql": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['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 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 from base\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__search_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__search_report"], "unique_id": "model.ad_reporting.ad_reporting__search_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__search_report.sql", "original_file_path": "models/ad_reporting__search_report.sql", "name": "ad_reporting__search_report", "alias": "ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "fdfe5302e880da1524033232e68b18721fd0115f3ba0861fab1dd8a94fb67578"}, "tags": [], "refs": [["int_ad_reporting__search_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by search query, ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID representing the keyword, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The keyword text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The search query text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_match_type": {"name": "search_match_type", "description": "The search match type associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "ad_reporting://models/ad_reporting.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__search_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1662526941.184908, "compiled_sql": "\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_query as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_term_text as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\nunioned as (\n\n \n\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 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 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__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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_query as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_term_text as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__search_report`"}, "model.ad_reporting.ad_reporting__ad_report": {"raw_sql": "{% 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 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 from base\n {{ dbt_utils.group_by(10) }}\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__ad_report"], "unique_id": "model.ad_reporting.ad_reporting__ad_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__ad_report.sql", "original_file_path": "models/ad_reporting__ad_report.sql", "name": "ad_reporting__ad_report", "alias": "ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "87a1850a3d333ed329ac0fe5fe08fe66b351da3b7eac0ed33af0b0737af6b057"}, "tags": [], "refs": [["int_ad_reporting__ad_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by ad, ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID representing the ad, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "ad_reporting://models/ad_reporting.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1662526941.163469, "compiled_sql": "\n\n\nwith __dbt__cte__int_ad_reporting__ad_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(creative_id as \n string\n) as ad_id \n ,cast(null as \n string\n) as ad_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(pin_promotion_id as \n string\n) as ad_id \n ,cast(pin_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(promoted_tweet_id as \n string\n) as ad_id \n ,cast(tweet_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\nunioned as (\n\n \n\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\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 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 from base\n group by 1,2,3,4,5,6,7,8,9,10\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(creative_id as \n string\n) as ad_id \n ,cast(null as \n string\n) as ad_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(pin_promotion_id as \n string\n) as ad_id \n ,cast(pin_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(promoted_tweet_id as \n string\n) as ad_id \n ,cast(tweet_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_report`"}, "model.ad_reporting.ad_reporting__url_report": {"raw_sql": "{% set enabled_packages = get_enabled_packages(exclude=['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 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 from base\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__url_report"], "unique_id": "model.ad_reporting.ad_reporting__url_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__url_report.sql", "original_file_path": "models/ad_reporting__url_report.sql", "name": "ad_reporting__url_report", "alias": "ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "50fe407d20dd2329daea89cbb3ad31198e2f5bcda05add9ceeb8cfd5797cb9fa"}, "tags": [], "refs": [["int_ad_reporting__url_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by URL (and if applicable, URL UTM parameters), ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base url of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "ad_reporting://models/ad_reporting.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1662526941.195403, "compiled_sql": "\n\n\nwith __dbt__cte__int_ad_reporting__url_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_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\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 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 from base\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__url_report`"}, "model.ad_reporting.ad_reporting__keyword_report": {"raw_sql": "{% if var('twitter_ads__using_keywords', False) %}\n {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %}\n{% else %}\n {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_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__keyword_report') }}\n),\n\naggregated as (\n \n select \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 from base\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom aggregated", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__keyword_report"], "unique_id": "model.ad_reporting.ad_reporting__keyword_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__keyword_report.sql", "original_file_path": "models/ad_reporting__keyword_report.sql", "name": "ad_reporting__keyword_report", "alias": "ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "6888e2314d9c12e455ac0cf5660a29e7acf84a0ed1e741f50c3f201ae17bf2cb"}, "tags": [], "refs": [["int_ad_reporting__keyword_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by keyword, ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID representing the keyword, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The keyword text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The keyword match type associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "ad_reporting://models/ad_reporting.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1662526941.175731, "compiled_sql": "\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(criterion_id as \n string\n) as keyword_id \n ,cast(keyword_match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_value as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\nunioned as (\n\n \n\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 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 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__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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(criterion_id as \n string\n) as keyword_id \n ,cast(keyword_match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_value as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\nunioned as (\n\n \n\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)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__keyword_report`"}, "model.ad_reporting.int_ad_reporting__campaign_report": {"raw_sql": "{% 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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__campaign_report"], "unique_id": "model.ad_reporting.int_ad_reporting__campaign_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__campaign_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__campaign_report.sql", "name": "int_ad_reporting__campaign_report", "alias": "int_ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "5174e150c1ad98a9b9d99fb9352e0724ace849dd094a9b9746a3b0e7490d1b60"}, "tags": [], "refs": [["twitter_ads__campaign_report"], ["facebook_ads__campaign_report"], ["google_ads__campaign_report"], ["microsoft_ads__campaign_report"], ["apple_search_ads__campaign_report"], ["linkedin_ads__campaign_group_report"], ["pinterest_ads__campaign_report"], ["snapchat_ads__campaign_report"], ["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1662526936.881962, "compiled_sql": "\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__keyword_report": {"raw_sql": "{% if var('twitter_ads__using_keywords', True) %}\n {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %}\n{% else %}\n {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_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 '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 %}\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', False) %}\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': 'null',\n 'keyword_text': 'keyword',\n 'keyword_match_type': 'null'\n },\n relation=ref('twitter_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__keyword_report"], "unique_id": "model.ad_reporting.int_ad_reporting__keyword_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__keyword_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__keyword_report.sql", "name": "int_ad_reporting__keyword_report", "alias": "int_ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "f5a0f7057b232856071d89aa3e6005e7b09b756020dd06c96c8904d3f57f40cb"}, "tags": [], "refs": [["apple_search_ads__keyword_report"], ["google_ads__keyword_report"], ["microsoft_ads__keyword_report"], ["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1662526936.9463959, "compiled_sql": "\n \n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(criterion_id as \n string\n) as keyword_id \n ,cast(keyword_match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_value as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\nunioned as (\n\n \n\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": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__ad_report": {"raw_sql": "{% 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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_report"], "unique_id": "model.ad_reporting.int_ad_reporting__ad_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__ad_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_report.sql", "name": "int_ad_reporting__ad_report", "alias": "int_ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "45df3eabc4c6c81f5a7761e477bb4f1713880612a62a8422ceabae062e18a1ab"}, "tags": [], "refs": [["google_ads__ad_report"], ["microsoft_ads__ad_report"], ["apple_search_ads__ad_report"], ["facebook_ads__ad_report"], ["linkedin_ads__creative_report"], ["pinterest_ads__pin_promotion_report"], ["snapchat_ads__ad_report"], ["tiktok_ads__ad_report"], ["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1662526936.977609, "compiled_sql": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(creative_id as \n string\n) as ad_id \n ,cast(null as \n string\n) as ad_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(pin_promotion_id as \n string\n) as ad_id \n ,cast(pin_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(promoted_tweet_id as \n string\n) as ad_id \n ,cast(tweet_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__account_report": {"raw_sql": "{% 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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__account_report"], "unique_id": "model.ad_reporting.int_ad_reporting__account_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__account_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__account_report.sql", "name": "int_ad_reporting__account_report", "alias": "int_ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "9a2f22570731cdbb33c0d3a211849591bfe267f01032c75ca4abea376ba08025"}, "tags": [], "refs": [["twitter_ads__account_report"], ["facebook_ads__account_report"], ["google_ads__account_report"], ["microsoft_ads__account_report"], ["apple_search_ads__organization_report"], ["linkedin_ads__account_report"], ["pinterest_ads__advertiser_report"], ["snapchat_ads__account_report"], ["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1662526937.0201411, "compiled_sql": "\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__url_report": {"raw_sql": "{% set enabled_packages = get_enabled_packages(exclude=['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 '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__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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__url_report"], "unique_id": "model.ad_reporting.int_ad_reporting__url_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__url_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__url_report.sql", "name": "int_ad_reporting__url_report", "alias": "int_ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "2442541b23cb235b629a95c509a11719e2f77b825b97999f0b5d5d64245a0359"}, "tags": [], "refs": [["google_ads__url_report"], ["microsoft_ads__url_report"], ["facebook_ads__url_report"], ["linkedin_ads__url_report"], ["pinterest_ads__url_report"], ["snapchat_ads__url_report"], ["tiktok_ads__url_report"], ["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1662526937.049578, "compiled_sql": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__search_report": {"raw_sql": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__search_report"], "unique_id": "model.ad_reporting.int_ad_reporting__search_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__search_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__search_report.sql", "name": "int_ad_reporting__search_report", "alias": "int_ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "5b93e83924851080b1345f16d10b896fad98172559d9fb1056cd00f53e1e7833"}, "tags": [], "refs": [["microsoft_ads__search_report"], ["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__search_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1662526937.0963619, "compiled_sql": "\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_query as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_term_text as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\nunioned as (\n\n \n\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": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__ad_group_report": {"raw_sql": "{% 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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_group_report"], "unique_id": "model.ad_reporting.int_ad_reporting__ad_group_report", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__ad_group_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_group_report.sql", "name": "int_ad_reporting__ad_group_report", "alias": "int_ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "0126c482a556de63a9ca7bbf8a3760801fb81dc1e7cdc6eddad67206a52be585"}, "tags": [], "refs": [["google_ads__ad_group_report"], ["microsoft_ads__ad_group_report"], ["apple_search_ads__ad_group_report"], ["linkedin_ads__campaign_report"], ["facebook_ads__ad_set_report"], ["pinterest_ads__ad_group_report"], ["snapchat_ads__ad_squad_report"], ["tiktok_ads__ad_group_report"], ["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1662526937.1184561, "compiled_sql": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(ad_squad_id as \n string\n) as ad_group_id \n ,cast(ad_squad_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select\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 id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_history"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__campaign_history.sql", "original_file_path": "models/stg_apple_search_ads__campaign_history.sql", "name": "stg_apple_search_ads__campaign_history", "alias": "stg_apple_search_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "294e54bc10f47e44786be1c445e764b49464643d75c0bf7a4fc3a38f3868e0de"}, "tags": [], "refs": [["stg_apple_search_ads__campaign_history_tmp"], ["stg_apple_search_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a campaign in Apple Search Ads.", "columns": {"modified_at": {"name": "modified_at", "description": "Timestamp of when the campaign object was last modified.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the campaign, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.416884, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 from base\n),\n\nfinal as (\n \n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp", "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_report"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__ad_report.sql", "original_file_path": "models/stg_apple_search_ads__ad_report.sql", "name": "stg_apple_search_ads__ad_report", "alias": "stg_apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "45019dc2d949eecadbbd9d4a052049a60dca00c32f726da678972fa8bdadd1f6"}, "tags": [], "refs": [["stg_apple_search_ads__ad_report_tmp"], ["stg_apple_search_ads__ad_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of an ad in Apple Search Ads.", "columns": {"date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.413087, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp", "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_report"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__campaign_report.sql", "original_file_path": "models/stg_apple_search_ads__campaign_report.sql", "name": "stg_apple_search_ads__campaign_report", "alias": "stg_apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "c4681d203c58d68501b9d2d3a84fc28598e9705eb4cc7f4496be52e3209768d3"}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report_tmp"], ["stg_apple_search_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a campaign in Apple Search Ads.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.420633, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_organization_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization_tmp", "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__organization"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__organization.sql", "original_file_path": "models/stg_apple_search_ads__organization.sql", "name": "stg_apple_search_ads__organization", "alias": "stg_apple_search_ads__organization", "checksum": {"name": "sha256", "checksum": "24d3ee4e2d050e8ade0b3222ea535ed1837d2ea4265f00cf3f3b7b67a7a30dab"}, "tags": [], "refs": [["stg_apple_search_ads__organization_tmp"], ["stg_apple_search_ads__organization_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Specified currency for respective organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_model": {"name": "payment_model", "description": "Values include 'LOC', 'PAYG' or (payment method hasn't been set).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "Organization default timezone; values can be ORTZ or UTC.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__organization.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.4311712, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp", "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_report"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__keyword_report.sql", "original_file_path": "models/stg_apple_search_ads__keyword_report.sql", "name": "stg_apple_search_ads__keyword_report", "alias": "stg_apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "087cf73b201edc946f1b30c28096f4d513aca817fc3e510cac05f28dc781c665"}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report_tmp"], ["stg_apple_search_ads__keyword_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a keyword in Apple Search Ads.", "columns": {"keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.428571, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp", "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_history"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__keyword_history.sql", "original_file_path": "models/stg_apple_search_ads__keyword_history.sql", "name": "stg_apple_search_ads__keyword_history", "alias": "stg_apple_search_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "5ee576e97a5fffaf97916376ca747fcb9389b6733d268f9b42308a8f244ade8e"}, "tags": [], "refs": [["stg_apple_search_ads__keyword_history_tmp"], ["stg_apple_search_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a keyword in Apple Search Ads.", "columns": {"modified_at": {"name": "modified_at", "description": "Timestamp of when the keyword object was last modified.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the keyword, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.425032, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "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.fill_pass_through_columns"], "nodes": ["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_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__search_term_report"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__search_term_report", "alias": "stg_apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "6345a092b669f3283eb8b09b8590cdcf4e89da7ac486c18bb626315fac6db0e0"}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report_tmp"], ["stg_apple_search_ads__search_term_report_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_format": {"name": "ad_format", "description": "Format of creative set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "The word or phrase to match of user searches.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__search_term_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.438472, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__search_term_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n select \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 id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["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_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_history"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_group_history", "alias": "stg_apple_search_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "b2081179706957545ca7818fd65e298a3948051372426039e2ecffd091fef371"}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_history_tmp"], ["stg_apple_search_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an ad group in Apple Search Ads.", "columns": {"modified_at": {"name": "modified_at", "description": "Timestamp of when the ad group object was last modified.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The designated ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The designated ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.400936, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_history`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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 id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp", "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_history"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__ad_history.sql", "original_file_path": "models/stg_apple_search_ads__ad_history.sql", "name": "stg_apple_search_ads__ad_history", "alias": "stg_apple_search_ads__ad_history", "checksum": {"name": "sha256", "checksum": "4abb76f80d87af32ba976747bb0accf3b1641854a41a3e9d8ebec94533405d23"}, "tags": [], "refs": [["stg_apple_search_ads__ad_history_tmp"], ["stg_apple_search_ads__ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an ad in Apple Search Ads.", "columns": {"created_at": {"name": "created_at", "description": "Timestamp of when ad was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the ad object was last modified.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The current status of the ad, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.408664, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select\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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["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_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_report"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_group_report", "alias": "stg_apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "a6f8f1e79e88e2512acd90e2768436ef73939e82acd46b79c0775ba19865147d"}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report_tmp"], ["stg_apple_search_ads__ad_group_report_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.405356, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__apple_search_ads_enabled','apple_search_ads__using_search_terms'])) }}\n\nselect * \nfrom {{ var('search_term_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["source.apple_search_ads_source.apple_search_ads.search_term_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__search_term_report_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__search_term_report_tmp", "alias": "stg_apple_search_ads__search_term_report_tmp", "checksum": {"name": "sha256", "checksum": "86f6e99ff5c0373cf5ec106d4011966278601cb5350d588466564e2dca2fa951"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "search_term_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__search_term_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.4051762, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_search_term_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__search_term_report_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_history_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__campaign_history_tmp", "alias": "stg_apple_search_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "e23c062d3d75b890a717ab4047e5a0dccf7c098b3927935df02f76c17acb3ea7"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.412643, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_history_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__keyword_history_tmp", "alias": "stg_apple_search_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "852fa9ece91c72dd36f654ce0d71f2af4a1707385c0fa00e3d68e206e4ac456b"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "keyword_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.421935, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_history_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_group_history_tmp", "alias": "stg_apple_search_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "69317b26b7a3c109c0e5e61d7fdad053cb0549479a0dfdacd0d67ff0757cc97e"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.430908, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_history_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_report_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_group_report_tmp", "alias": "stg_apple_search_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "91089253c95dee7d0aea3f9b8cc49cf343c2d06acf0de36641ebaef03e1d2b1b"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "ad_group_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.4383519, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_history_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_history_tmp", "alias": "stg_apple_search_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "7b184af2299b7d42defa4606467cf9bf379e10cec768bf1e5825c040dbdfacb8"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.4471529, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_report_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__campaign_report_tmp", "alias": "stg_apple_search_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "ae8d95be0097305356d0ba251d324d35bbe367edcf342c958f69fea9f89625f2"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "campaign_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.455842, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('organization') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.organization"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__organization_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__organization_tmp", "alias": "stg_apple_search_ads__organization_tmp", "checksum": {"name": "sha256", "checksum": "4a62af784e819ec6034aa89fe16019f027c9994b192426e70bcf18bda3d117a9"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "organization"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__organization_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.464782, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_organization_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_report_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__keyword_report_tmp", "alias": "stg_apple_search_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "5009b770850f4f2648d5498a78b1491e6a44250d9ac2d7c08c249e8624f517f2"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "keyword_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.4738328, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_level_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_report_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_report_tmp", "alias": "stg_apple_search_ads__ad_report_tmp", "checksum": {"name": "sha256", "checksum": "1744a47e20045a53726079456f5aba358e0292dd8a14d670e6ab7b2c30ece7ee"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "ad_level_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.48415, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select\n id as pin_promotion_id,\n ad_group_id,\n created_time as created_at,\n destination_url,\n {{ dbt_utils.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 {{ dbt_utils.get_url_parameter('destination_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('destination_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('destination_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('destination_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_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 id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_history"], "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__pin_promotion_history.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_history.sql", "name": "stg_pinterest_ads__pin_promotion_history", "alias": "stg_pinterest_ads__pin_promotion_history", "checksum": {"name": "sha256", "checksum": "7d9ae411577ef8e7067d067cce4f8a2eed6b8658b16ffda0e79a118aea734331"}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_history_tmp"], ["stg_pinterest_ads__pin_promotion_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a Pinterest Pin promotion.", "columns": {"pin_promotion_id": {"name": "pin_promotion_id", "description": "Pin promotion ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Pin promotion ad group ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Pin creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_id": {"name": "pin_id", "description": "Original pin ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.566377, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 cast(null as \n string\n) as \n \n android_deep_link\n \n , \n cast(null as \n string\n) 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 \n string\n) 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 \n string\n) as \n \n review_status\n \n , \n \n \n status\n \n as \n \n status\n \n, \n cast(null as \n timestamp\n) as \n \n updated_time\n \n , \n cast(null as \n string\n) as \n \n view_tracking_url\n \n \n\n\n from base\n), \n\nfinal as (\n\n select\n id as pin_promotion_id,\n ad_group_id,\n created_time as created_at,\n destination_url,\n \n\n \n split(\n destination_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n name as pin_name,\n pin_id,\n status as pin_status,\n creative_type,\n _fivetran_synced,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_history`"}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\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 from base\n),\n\nfinal as (\n \n select\n {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report_tmp", "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_report"], "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__keyword_report.sql", "original_file_path": "models/stg_pinterest_ads__keyword_report.sql", "name": "stg_pinterest_ads__keyword_report", "alias": "stg_pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "4a1f384242b060c6acc597f4fc397a7a56d40aec534ab7d45ad09dd221d6e71e"}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report_tmp"], ["stg_pinterest_ads__keyword_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of Keywords by ad group, campaign, and advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.599446, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 cast(null as \n int64\n) as \n \n impression_2\n \n , \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n pin_promotion_id\n \n as \n \n pin_promotion_id\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp", "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_report"], "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__ad_group_report.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_report.sql", "name": "stg_pinterest_ads__ad_group_report", "alias": "stg_pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "d7093951e6c8ef67b5f1fc47361d8c728d375f2e9c5c1cd339b4ae46b43bf6d0"}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report_tmp"], ["stg_pinterest_ads__ad_group_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Pinterest Ad Groups by campaign and advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.573266, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 cast(null as \n int64\n) as \n \n impression_2\n \n , \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`"}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select \n id as campaign_id,\n name as campaign_name,\n advertiser_id,\n status as campaign_status,\n _fivetran_synced,\n created_time as created_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history_tmp", "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_history"], "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__campaign_history.sql", "original_file_path": "models/stg_pinterest_ads__campaign_history.sql", "name": "stg_pinterest_ads__campaign_history", "alias": "stg_pinterest_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "945f535a560d134e94225647469d1cfbe295ed547b84be7af6575b9d86d4baa0"}, "tags": [], "refs": [["stg_pinterest_ads__campaign_history_tmp"], ["stg_pinterest_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a Pinterest Campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Campaign creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the Campaign. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.558615, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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 from base\n), \n\nfinal as (\n\n select \n id as campaign_id,\n name as campaign_name,\n advertiser_id,\n status as campaign_status,\n _fivetran_synced,\n created_time as created_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp", "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_report"], "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__advertiser_report.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_report.sql", "name": "stg_pinterest_ads__advertiser_report", "alias": "stg_pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "e7c15e76e697bfc8fbe7fac4b2e8dd38634385e0784ac8cf7e6c68e1a6152628"}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report_tmp"], ["stg_pinterest_ads__advertiser_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of an Advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.5817752, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 cast(null as \n int64\n) as \n \n impression_2\n \n , \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n id as advertiser_id,\n name as advertiser_name,\n status as advertiser_status,\n billing_profile_status,\n billing_type,\n country,\n created_time as created_at,\n currency as currency_code,\n merchant_id,\n owner_user_id,\n updated_time as updated_at,\n row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp", "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_history"], "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__advertiser_history.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_history.sql", "name": "stg_pinterest_ads__advertiser_history", "alias": "stg_pinterest_ads__advertiser_history", "checksum": {"name": "sha256", "checksum": "c373922dcac412d7b7290ec100cdf341ca19176968c29f240be32e7acd0ca7d9"}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_history_tmp"], ["stg_pinterest_ads__advertiser_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an advertiser.", "columns": {"advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_status": {"name": "advertiser_status", "description": "Status of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_profile_status": {"name": "billing_profile_status", "description": "Status of the billing profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_type": {"name": "billing_type", "description": "The billing type of the advertiser. Will typically be CREDIT_CARD or INVOICE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code which the advertiser is set up using.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "merchant_id": {"name": "merchant_id", "description": "Unique ID of the merchant associated with the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_user_id": {"name": "owner_user_id", "description": "Unique identifier of the owner user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when a record was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.578335, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 billing_profile_status\n \n as \n \n billing_profile_status\n \n, \n \n \n billing_type\n \n as \n \n billing_type\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 merchant_id\n \n as \n \n merchant_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n owner_user_id\n \n as \n \n owner_user_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_time\n \n as \n \n updated_time\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as advertiser_id,\n name as advertiser_name,\n status as advertiser_status,\n billing_profile_status,\n billing_type,\n country,\n created_time as created_at,\n currency as currency_code,\n merchant_id,\n owner_user_id,\n updated_time as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`"}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report_tmp", "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_report"], "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__campaign_report.sql", "original_file_path": "models/stg_pinterest_ads__campaign_report.sql", "name": "stg_pinterest_ads__campaign_report", "alias": "stg_pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "a3ec188707551886ae5a3b54ffb3b58b283020e6fe576c1a5c144b7980d07eca"}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report_tmp"], ["stg_pinterest_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of Campaigns by advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.585831, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 cast(null as \n int64\n) as \n \n impression_2\n \n , \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`"}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\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 from base\n),\n\nfinal as (\n \n select\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 id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history_tmp", "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_history"], "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__keyword_history.sql", "original_file_path": "models/stg_pinterest_ads__keyword_history.sql", "name": "stg_pinterest_ads__keyword_history", "alias": "stg_pinterest_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "8b3313f6551f5e5a8929436411869bcd40e86fdcf8093d1158ac4ccbb75a063d"}, "tags": [], "refs": [["stg_pinterest_ads__keyword_history_tmp"], ["stg_pinterest_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Keyword.", "columns": {"keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_value": {"name": "keyword_value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique identifier of the record within the Fivetran synced table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "archived": {"name": "archived", "description": "Boolean indicating if the keyword is archived.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid amount set for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.592447, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history`"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select \n {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp", "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_report"], "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_report.sql", "name": "stg_pinterest_ads__pin_promotion_report", "alias": "stg_pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "a96d37101d4258bf1929d513e062491f3b00b645e9a765f8255371e2b5c9f39a"}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report_tmp"], ["stg_pinterest_ads__pin_promotion_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Pinterest Pin promotion by ad group, campaign, and advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.570013, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select \n id as ad_group_id,\n name as ad_group_name,\n status as ad_group_status,\n _fivetran_synced,\n campaign_id,\n created_time as created_at,\n end_time,\n start_time,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp", "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_history"], "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__ad_group_history.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_history.sql", "name": "stg_pinterest_ads__ad_group_history", "alias": "stg_pinterest_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "3fc611eb025a550beebacb144b8fd5b95070cc7d212cdc73029b5e2132272902"}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_history_tmp"], ["stg_pinterest_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a Pinterest Ad Group.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Parent Campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Ad group creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1662526941.555336, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 name\n \n as \n \n name\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 from base\n), \n\nfinal as (\n\n select \n id as ad_group_id,\n name as ad_group_name,\n status as ad_group_status,\n _fivetran_synced,\n campaign_id,\n created_time as created_at,\n end_time,\n start_time,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('advertiser_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "name": "stg_pinterest_ads__advertiser_history_tmp", "alias": "stg_pinterest_ads__advertiser_history_tmp", "checksum": {"name": "sha256", "checksum": "30228e737c74f3502de539edf195e6ac0f1bc20d81b4625f2a7d38b7b444e025"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "advertiser_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.732716, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history_tmp`"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('pin_promotion_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "alias": "stg_pinterest_ads__pin_promotion_report_tmp", "checksum": {"name": "sha256", "checksum": "055e6b22a0ebf3ae5ebc592a2d59fde23e9c4aa97307e7bc9d07fdd564d29318"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "pin_promotion_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.793748, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "name": "stg_pinterest_ads__campaign_report_tmp", "alias": "stg_pinterest_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "297b62832ce1e1cf4ec432c98f64696ae82b6d5461ba9a6991f9143d8680600e"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "campaign_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.803806, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('advertiser_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "name": "stg_pinterest_ads__advertiser_report_tmp", "alias": "stg_pinterest_ads__advertiser_report_tmp", "checksum": {"name": "sha256", "checksum": "51f6279568da2b328c230e1141b82a8d4cf23f0db1d71797da244ba0f850f80c"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "advertiser_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.813781, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "name": "stg_pinterest_ads__keyword_report_tmp", "alias": "stg_pinterest_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "8d5de2659df4d8c7f106988e098aad658de1e0df637686bc39641dbfd58528ab"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "keyword_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.824521, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_pinterest_ads__ad_group_report_tmp", "alias": "stg_pinterest_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "416b2ba76c7422ae9d0cc9027cfda76b1461ead0158a8cc3d7bcec5765fa7fa4"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "ad_group_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.8334951, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "name": "stg_pinterest_ads__keyword_history_tmp", "alias": "stg_pinterest_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "7fbf43157af6c11490590879cc6abd74a981291eaa179873d44ee6517d058272"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "keyword_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.84306, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history_tmp`"}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "name": "stg_pinterest_ads__campaign_history_tmp", "alias": "stg_pinterest_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "6b6e9567363f5912e8f6c2f8547e79e160a7e998dbfb2ac6fe193c73949b9163"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.852353, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history_tmp`"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('ad_group_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_pinterest_ads__ad_group_history_tmp", "alias": "stg_pinterest_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "781c3dac60c7fc9e9f08f8ad4fce2e5fec42b09036486e24814e717cec4b4ce3"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.862293, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history_tmp`"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('pin_promotion_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "alias": "stg_pinterest_ads__pin_promotion_history_tmp", "checksum": {"name": "sha256", "checksum": "268ac897534336c397f3c313861c98d0a47f3022d3fc2aefcc201fb3d1db81b9"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "pin_promotion_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1662526937.870419, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_history_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(stat_time_hour as {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp", "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_report_hourly"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__campaign_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__campaign_report_hourly.sql", "name": "stg_tiktok_ads__campaign_report_hourly", "alias": "stg_tiktok_ads__campaign_report_hourly", "checksum": {"name": "sha256", "checksum": "2c2bc92ccb26a7f8380b5b2e5215b7c52e10b3ca4937629549065874793b2293"}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly_tmp"], ["stg_tiktok_ads__campaign_report_hourly_tmp"]], "sources": [], "metrics": [], "description": "Each record represent data for each campaign for each hour.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_report_hourly.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526942.0874581, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(stat_time_hour as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select \n adgroup_id as ad_group_id,\n cast(stat_time_hour as {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_report_hourly"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_report_hourly.sql", "name": "stg_tiktok_ads__ad_group_report_hourly", "alias": "stg_tiktok_ads__ad_group_report_hourly", "checksum": {"name": "sha256", "checksum": "5d0c1cb8954787126a2141c59e4c8b849fe3c13112073fef2b08c553df4d5ad5"}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly_tmp"], ["stg_tiktok_ads__ad_group_report_hourly_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each ad group for each hour.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "Ad group id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_report_hourly.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526942.07774, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n adgroup_id as ad_group_id,\n cast(stat_time_hour as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select\n adgroup_id as ad_group_id,\n cast(updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n age,\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 adgroup_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_history"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_history.sql", "name": "stg_tiktok_ads__ad_group_history", "alias": "stg_tiktok_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "6f17a6500d8cf7d6eecca042fe00b62ad408285f7716b933ffb34bdf41daf60b"}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_history_tmp"], ["stg_tiktok_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each ad group.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The Ad group's campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_days": {"name": "action_days", "description": "Action days", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Display name of ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526942.0464, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n \n age\n \n as \n \n age\n \n, \n \n \n languages\n \n as \n \n languages\n \n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n adgroup_id as ad_group_id,\n cast(updated_at as \n timestamp\n) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n age,\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select \n ad_id, \n cast(stat_time_hour as {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp", "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_report_hourly"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__ad_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_report_hourly.sql", "name": "stg_tiktok_ads__ad_report_hourly", "alias": "stg_tiktok_ads__ad_report_hourly", "checksum": {"name": "sha256", "checksum": "1f2059be82b502ed2cecb9c75baba870edffc38b0da6eb933fbf28dffaf10a7a"}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly_tmp"], ["stg_tiktok_ads__ad_report_hourly_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each ad for each hour.", "columns": {"ad_id": {"name": "ad_id", "description": "Ad id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_report_hourly.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526942.0671139, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n ad_id, \n cast(stat_time_hour as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n\n select \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 phone_number, \n telephone, \n timezone\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_advertiser_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp", "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__advertiser"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__advertiser.sql", "original_file_path": "models/stg_tiktok_ads__advertiser.sql", "name": "stg_tiktok_ads__advertiser", "alias": "stg_tiktok_ads__advertiser", "checksum": {"name": "sha256", "checksum": "759a97a786242ecdb350f1852e0861bbeae8218dc19a4047fee98c96ea0ba8be"}, "tags": [], "refs": [["stg_tiktok_ads__advertiser_tmp"], ["stg_tiktok_ads__advertiser_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each advertiser.", "columns": {"advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address": {"name": "address", "description": "Advertiser address information", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Account available balance", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company": {"name": "company", "description": "Advertiser's company name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contacter": {"name": "contacter", "description": "Contact Person", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The advertiser's country", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Advertiser's create time", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Type of currency used by advertisers", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Brand description, i.e. promotional content", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Advertiser contact email, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Advertiser industry category", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "Language used by advertisers", "meta": {}, "data_type": null, "quote": null, "tags": []}, "license_no": {"name": "license_no", "description": "License number", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Contact mobile number, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "telephone": {"name": "telephone", "description": "Fixed phone number, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Ad account time zone including GMT offset", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__advertiser.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526942.0390232, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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 \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n telephone\n \n as \n \n telephone\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select \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 phone_number, \n telephone, \n timezone\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select \n ad_id,\n cast(updated_at as {{ dbt_utils.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_utils.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 {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_term') }} as utm_term,\n landing_page_url,\n row_number() over (partition by ad_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp", "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_history"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__ad_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_history.sql", "name": "stg_tiktok_ads__ad_history", "alias": "stg_tiktok_ads__ad_history", "checksum": {"name": "sha256", "checksum": "5053436d29ee6e8509235feb281623ffe08680916c5aabb03638be0c21f9ec60"}, "tags": [], "refs": [["stg_tiktok_ads__ad_history_tmp"], ["stg_tiktok_ads__ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each ad.", "columns": {"ad_id": {"name": "ad_id", "description": "Ad ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad Name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_to_action": {"name": "call_to_action", "description": "Call to action values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526942.053764, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n ad_id,\n cast(updated_at as \n timestamp\n) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n \n\n \n split(\n landing_page_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n landing_page_url,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"raw_sql": "{{ 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 from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by campaign_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_history"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__campaign_history.sql", "original_file_path": "models/stg_tiktok_ads__campaign_history.sql", "name": "stg_tiktok_ads__campaign_history", "alias": "stg_tiktok_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "16c836c95f7cc17d3baf3e4ac360fbde750e492f12a828db8c5850068f96a30e"}, "tags": [], "refs": [["stg_tiktok_ads__campaign_history_tmp"], ["stg_tiktok_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "split_test_variable": {"name": "split_test_variable", "description": "Split Test variables. Optional values; TARGETING, BIDDING_OPTIMIZATION , CREATIVE.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526942.057087, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n \n campaign_name\n \n as \n \n campaign_name\n \n, \n \n \n campaign_type\n \n as \n \n campaign_type\n \n, \n \n \n split_test_variable\n \n 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 from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(updated_at as \n timestamp\n) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_report_hourly') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_report_hourly_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "alias": "stg_tiktok_ads__ad_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "30949b79355e85af66a3df6de9ef124c666c0bf8ecc911ad673eb56cf3124b7e"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "ad_report_hourly"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526938.0787032, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_history_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "name": "stg_tiktok_ads__ad_history_tmp", "alias": "stg_tiktok_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "70d0e01a26a5250c141b3a67fd3b1ffcfceea35645e82096257852badea2b9d2"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526938.089964, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_group_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_history"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_history_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_tiktok_ads__ad_group_history_tmp", "alias": "stg_tiktok_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "656a88662bd5fe65b7e782c1d24ecfc5459e7541ec41b4418f4472f3633aa347"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "adgroup_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526938.099253, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('campaign_report_hourly') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_report_hourly_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "alias": "stg_tiktok_ads__campaign_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "3a734b2b71b67ce84e5c0fadfff18429e2aa52abcae9f16aa3832a7c5e94c25e"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "campaign_report_hourly"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526938.108263, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_group_hourly') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_report_hourly_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "alias": "stg_tiktok_ads__ad_group_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "5e607a6ea02a4f66c2d50b092e2d37d6b07d0de03b0490dddde773197364937e"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "adgroup_report_hourly"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526938.117831, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_history_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "tmp/stg_tiktok_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "name": "stg_tiktok_ads__campaign_history_tmp", "alias": "stg_tiktok_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "1c8e0405cc5ddf7b7748f613590108b0b3f786b44a35ac4382079c19072febe5"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526938.1316092, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('advertiser') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.advertiser"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__advertiser_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "tmp/stg_tiktok_ads__advertiser_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "name": "stg_tiktok_ads__advertiser_tmp", "alias": "stg_tiktok_ads__advertiser_tmp", "checksum": {"name": "sha256", "checksum": "43da3da14719af2f23e901aa756fc51b3bd807b1172a7776a811541ee26e8688"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "advertiser"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1662526938.141858, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_advertiser_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n cast(ad_id as {{ dbt_utils.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_utils.type_bigint() }}) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend,\n reach,\n frequency\n\n {{ fivetran_utils.fill_pass_through_columns('facebook_ads__basic_ad_passthrough_metrics') }}\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp", "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__basic_ad.sql", "original_file_path": "models/stg_facebook_ads__basic_ad.sql", "name": "stg_facebook_ads__basic_ad", "alias": "stg_facebook_ads__basic_ad", "checksum": {"name": "sha256", "checksum": "d831e56799b6ad74e33a5d7f977a602494c2f9d5dd5208f8e0c7dbd099b86b45"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad_tmp"], ["stg_facebook_ads__basic_ad_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad the report relates to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "Name of the ad set the report relates to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.258254, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) as \n \n ad_name\n \n , \n cast(null as \n string\n) 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 \n int64\n) as \n \n reach\n \n , \n cast(null as \n float64\n) as \n \n frequency\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(ad_id as \n int64\n) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as \n int64\n) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend,\n reach,\n frequency\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`"}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n cast(id as {{ dbt_utils.type_bigint() }}) as creative_id,\n cast(account_id as {{ dbt_utils.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 row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__creative_history"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__creative_history.sql", "original_file_path": "models/stg_facebook_ads__creative_history.sql", "name": "stg_facebook_ads__creative_history", "alias": "stg_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "c6fe833085d58ff2d99e096a37af1567c55e115cd2027bd18fea4bf075a7d207"}, "tags": [], "refs": [["stg_facebook_ads__creative_history_tmp"], ["stg_facebook_ads__creative_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook creative.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique record identifier", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique ID for an ad creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Ad account ID for the account this ad creative belongs to.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "page_link": {"name": "page_link", "description": "Link for the page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "template_page_link": {"name": "template_page_link", "description": "URL destination of Facebook dynamic ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__creative_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.25282, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) 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 \n string\n) as \n \n template_app_link_spec_ipad\n \n , \n cast(null as \n string\n) as \n \n template_app_link_spec_iphone\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n cast(id as \n int64\n) as creative_id,\n cast(account_id as \n int64\n) 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 row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n created_time as created_at,\n cast(account_id as {{ dbt_utils.type_bigint() }}) as account_id,\n cast(id as {{ dbt_utils.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 row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__campaign_history"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__campaign_history.sql", "original_file_path": "models/stg_facebook_ads__campaign_history.sql", "name": "stg_facebook_ads__campaign_history", "alias": "stg_facebook_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "94da6a989316561af0f55e34db3d2fa3f661b113b2aef18c7bd3199d6efaa819"}, "tags": [], "refs": [["stg_facebook_ads__campaign_history_tmp"], ["stg_facebook_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this campaign belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.242909, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) as \n \n start_time\n \n , \n cast(null as \n timestamp\n) as \n \n stop_time\n \n , \n cast(null as \n string\n) as \n \n status\n \n , \n cast(null as \n int64\n) as \n \n daily_budget\n \n , \n cast(null as \n int64\n) as \n \n lifetime_budget\n \n , \n cast(null as \n float64\n) as \n \n budget_remaining\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n created_time as created_at,\n cast(account_id as \n int64\n) as account_id,\n cast(id as \n int64\n) 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 row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history`"}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.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 row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__account_history"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__account_history.sql", "original_file_path": "models/stg_facebook_ads__account_history.sql", "name": "stg_facebook_ads__account_history", "alias": "stg_facebook_ads__account_history", "checksum": {"name": "sha256", "checksum": "ebad79f217e4917524a32c0c825e173162e34d2f8b570ed1c7eaf3fcccf9fd01"}, "tags": [], "refs": [["stg_facebook_ads__account_history_tmp"], ["stg_facebook_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook ad account.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the ad account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.224881, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) as \n \n account_status\n \n , \n cast(null as \n string\n) as \n \n business_country_code\n \n , \n cast(null as \n timestamp\n) as \n \n created_time\n \n , \n cast(null as \n string\n) as \n \n currency\n \n , \n cast(null as \n string\n) as \n \n timezone_name\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) 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 row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history`"}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as {{ dbt_utils.type_bigint() }}) as ad_id,\n name as ad_name,\n cast(account_id as {{ dbt_utils.type_bigint() }}) as account_id,\n cast(ad_set_id as {{ dbt_utils.type_bigint() }}) as ad_set_id, \n cast(campaign_id as {{ dbt_utils.type_bigint() }}) as campaign_id,\n cast(creative_id as {{ dbt_utils.type_bigint() }}) as creative_id,\n row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_history"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__ad_history.sql", "original_file_path": "models/stg_facebook_ads__ad_history.sql", "name": "stg_facebook_ads__ad_history", "alias": "stg_facebook_ads__ad_history", "checksum": {"name": "sha256", "checksum": "b09ee1eca3b5810bb34967118f276d923b4e76e3637326e2e586de9cfb99d48a"}, "tags": [], "refs": [["stg_facebook_ads__ad_history_tmp"], ["stg_facebook_ads__ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook ad.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of this ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "ID of the ad set that contains the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.229861, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as \n int64\n) as ad_id,\n name as ad_name,\n cast(account_id as \n int64\n) as account_id,\n cast(ad_set_id as \n int64\n) as ad_set_id, \n cast(campaign_id as \n int64\n) as campaign_id,\n cast(creative_id as \n int64\n) as creative_id,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history`"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as {{ dbt_utils.type_bigint() }}) as ad_set_id,\n name as ad_set_name,\n cast(account_id as {{ dbt_utils.type_bigint() }}) as account_id,\n cast(campaign_id as {{ dbt_utils.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 row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_set_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp", "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_set_history"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__ad_set_history.sql", "original_file_path": "models/stg_facebook_ads__ad_set_history.sql", "name": "stg_facebook_ads__ad_set_history", "alias": "stg_facebook_ads__ad_set_history", "checksum": {"name": "sha256", "checksum": "c606fe93d3421bff81293cc88b681087dce54c2e09e7eeffda5e5b8104915fec"}, "tags": [], "refs": [["stg_facebook_ads__ad_set_history_tmp"], ["stg_facebook_ads__ad_set_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook ad set.", "columns": {"ad_set_id": {"name": "ad_set_id", "description": "The ID of the ad set.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the ad set.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_set_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.236524, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) as \n \n start_time\n \n , \n cast(null as \n timestamp\n) as \n \n end_time\n \n , \n cast(null as \n string\n) as \n \n bid_strategy\n \n , \n cast(null as \n int64\n) as \n \n daily_budget\n \n , \n cast(null as \n int64\n) as \n \n budget_remaining\n \n , \n cast(null as \n string\n) as \n \n status\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as \n int64\n) as ad_set_id,\n name as ad_set_name,\n cast(account_id as \n int64\n) as account_id,\n cast(campaign_id as \n int64\n) 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 row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history`"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_set_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.ad_set_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_set_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_facebook_ads__ad_set_history_tmp", "alias": "stg_facebook_ads__ad_set_history_tmp", "checksum": {"name": "sha256", "checksum": "dad1782db9e8232b2613b5b9959963ad0d0ff99b7462524fc223610cd3e14442"}, "tags": [], "refs": [], "sources": [["facebook_ads", "ad_set_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_set_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.4119942, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_set_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('basic_ad') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "name": "stg_facebook_ads__basic_ad_tmp", "alias": "stg_facebook_ads__basic_ad_tmp", "checksum": {"name": "sha256", "checksum": "46e4ec682f4ed2b33b3123c24ae2b20d9d9bce50ed7ef83b547dd83b57339f89"}, "tags": [], "refs": [], "sources": [["facebook_ads", "basic_ad"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.4211211, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_basic_ad_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__ad_history_tmp.sql", "name": "stg_facebook_ads__ad_history_tmp", "alias": "stg_facebook_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "438f57c6bd1ce2a8c4a73600c1e12878efc0a091f42b3a43ed0334067779eace"}, "tags": [], "refs": [], "sources": [["facebook_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.430115, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__campaign_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "name": "stg_facebook_ads__campaign_history_tmp", "alias": "stg_facebook_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "617b7e683421a5712cc129d02e07eeb0f5876b7fdeb680429b4d6069b4dcdfc1"}, "tags": [], "refs": [], "sources": [["facebook_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.438833, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('creative_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__creative_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__creative_history_tmp.sql", "name": "stg_facebook_ads__creative_history_tmp", "alias": "stg_facebook_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "9cf5ffb0bc31c525388d169c90fb8b6150e5141777b14337c0fee0730faeecd9"}, "tags": [], "refs": [], "sources": [["facebook_ads", "creative_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__creative_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.452172, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__account_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__account_history_tmp.sql", "name": "stg_facebook_ads__account_history_tmp", "alias": "stg_facebook_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "caa1f4a119ca187458bff00bd8682eabffdba914962ff8ae7d4cfe55f25833ff"}, "tags": [], "refs": [], "sources": [["facebook_ads", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.461976, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n ad_squad_id,\n cast (date as {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_hourly_report"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_hourly_report.sql", "name": "stg_snapchat_ads__ad_squad_hourly_report", "alias": "stg_snapchat_ads__ad_squad_hourly_report", "checksum": {"name": "sha256", "checksum": "14800ee64f8b1630c0c90d5cb719e87535e71e2b58bfa260f7f8af5cd342cbc9"}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report_tmp"], ["stg_snapchat_ads__ad_squad_hourly_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"ad_squad_id": {"name": "ad_squad_id", "description": "ID of the ad squad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_hourly_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.4514189, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n ad_squad_id,\n cast (date as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n id as ad_id,\n name as ad_name,\n cast (created_at as {{ dbt_utils.type_timestamp() }}) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_history"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_history.sql", "name": "stg_snapchat_ads__ad_history", "alias": "stg_snapchat_ads__ad_history", "checksum": {"name": "sha256", "checksum": "82f98f40a73e789195df14b00e1901cd8741caff552ce68055e18246d1db00ce"}, "tags": [], "refs": [["stg_snapchat_ads__ad_history_tmp"], ["stg_snapchat_ads__ad_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the related ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.432768, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n id as ad_id,\n name as ad_name,\n cast (created_at as \n timestamp\n) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n\n select \n id as ad_squad_id,\n name as ad_squad_name,\n cast (created_at as {{ dbt_utils.type_timestamp() }}) as created_at,\n campaign_id,\n cast (_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_history"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_history.sql", "name": "stg_snapchat_ads__ad_squad_history", "alias": "stg_snapchat_ads__ad_squad_history", "checksum": {"name": "sha256", "checksum": "b4cc533ef8df8a5fef7d9be218b5db4c9f8d77e056e0f212d3e17ccce4d1fb96"}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_history_tmp"], ["stg_snapchat_ads__ad_squad_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign in Snapchat.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.443985, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n\n select \n id as ad_squad_id,\n name as ad_squad_name,\n cast (created_at as \n timestamp\n) as created_at,\n campaign_id,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n ad_id,\n cast (date as {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_hourly_report"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_hourly_report.sql", "name": "stg_snapchat_ads__ad_hourly_report", "alias": "stg_snapchat_ads__ad_hourly_report", "checksum": {"name": "sha256", "checksum": "e77687cbba617daeeaacdbc80fef8523c5f89b68417f8a4f8e5a9453432dc207"}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report_tmp"], ["stg_snapchat_ads__ad_hourly_report_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_hourly_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.440803, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n numeric\n) as \n \n attachment_quartile_1\n \n , \n cast(null as \n numeric\n) as \n \n attachment_quartile_2\n \n , \n cast(null as \n numeric\n) as \n \n attachment_quartile_3\n \n , \n cast(null as \n numeric\n) as \n \n attachment_total_view_time_millis\n \n , \n cast(null as \n numeric\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 cast(null as \n numeric\n) as \n \n quartile_1\n \n , \n cast(null as \n numeric\n) as \n \n quartile_2\n \n , \n cast(null as \n numeric\n) as \n \n quartile_3\n \n , \n cast(null as \n numeric\n) as \n \n saves\n \n , \n cast(null as \n numeric\n) as \n \n screen_time_millis\n \n , \n cast(null as \n numeric\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 cast(null as \n numeric\n) as \n \n video_views\n \n , \n cast(null as \n numeric\n) as \n \n view_completion\n \n , \n cast(null as \n numeric\n) as \n \n view_time_millis\n \n \n\n \n from base\n),\n\nfinal as (\n \n select \n ad_id,\n cast (date as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n id as creative_id,\n cast (created_at as {{ dbt_utils.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_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_history"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__creative_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_history.sql", "name": "stg_snapchat_ads__creative_history", "alias": "stg_snapchat_ads__creative_history", "checksum": {"name": "sha256", "checksum": "0f798f660d3e6a1d5c6e0882abc25e9822df55b0f24b003c82827746a1d5999d"}, "tags": [], "refs": [["stg_snapchat_ads__creative_history_tmp"], ["stg_snapchat_ads__creative_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "The name of the creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "The URL of the creative if the creative is of type 'web view'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.464563, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) 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 from base\n),\n\nfinal as (\n \n select \n id as creative_id,\n cast (created_at as \n timestamp\n) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n creative_id,\n key as param_key,\n value as param_value,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by creative_id, key order by updated_at desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_url_tag_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_url_tag_history"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__creative_url_tag_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_url_tag_history.sql", "name": "stg_snapchat_ads__creative_url_tag_history", "alias": "stg_snapchat_ads__creative_url_tag_history", "checksum": {"name": "sha256", "checksum": "42f2c59b8cc669d99bc71901cadbfa4ab93c186b0b5aeefe369eb84c2b3eb6a6"}, "tags": [], "refs": [["stg_snapchat_ads__creative_url_tag_history_tmp"], ["stg_snapchat_ads__creative_url_tag_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a URL paramter key-value pair for a creative in Snapchat.", "columns": {"creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "param_key": {"name": "param_key", "description": "The URL parameter key, i.e. UTM_SOURCE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "param_value": {"name": "param_value", "description": "The URL parameter value, i.e. Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_url_tag_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.467181, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n creative_id,\n key as param_key,\n value as param_value,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n id as ad_account_id,\n name as ad_account_name,\n cast (created_at as {{ dbt_utils.type_timestamp() }}) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_account_history"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_account_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_account_history.sql", "name": "stg_snapchat_ads__ad_account_history", "alias": "stg_snapchat_ads__ad_account_history", "checksum": {"name": "sha256", "checksum": "ef3149f4a2e569dc38b5cb6b60e596d9e3d34366f453131f18a63c29d5b2d5ed"}, "tags": [], "refs": [["stg_snapchat_ads__ad_account_history_tmp"], ["stg_snapchat_ads__ad_account_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser": {"name": "advertiser", "description": "Name of advertiser", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency used by account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Account timezone", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.428405, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) as \n \n advertiser\n \n , \n cast(null as \n timestamp\n) as \n \n created_at\n \n , \n cast(null as \n string\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 cast(null as \n string\n) as \n \n timezone\n \n , \n cast(null as \n string\n) as \n \n type\n \n , \n cast(null as \n timestamp\n) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n id as ad_account_id,\n name as ad_account_name,\n cast (created_at as \n timestamp\n) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n campaign_id,\n cast (date as {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp", "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_hourly_report"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__campaign_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__campaign_hourly_report.sql", "name": "stg_snapchat_ads__campaign_hourly_report", "alias": "stg_snapchat_ads__campaign_hourly_report", "checksum": {"name": "sha256", "checksum": "4ff6a885fd561a0ae405c2d8805742758bccbf18d15e419a48bb3d854eb473b5"}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report_tmp"], ["stg_snapchat_ads__campaign_hourly_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"campaign_id": {"name": "campaign_id", "description": "ID of campaign", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_hourly_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.461283, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n campaign_id,\n cast (date as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select\n id as campaign_id,\n ad_account_id,\n cast (created_at as {{ dbt_utils.type_timestamp() }}) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_history"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__campaign_history.sql", "original_file_path": "models/stg_snapchat_ads__campaign_history.sql", "name": "stg_snapchat_ads__campaign_history", "alias": "stg_snapchat_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "72850da30953e31d88a58504ebe308f7fa155c6099bbf107858853dfba12a26a"}, "tags": [], "refs": [["stg_snapchat_ads__campaign_history_tmp"], ["stg_snapchat_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The id of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1662526942.454577, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n id as campaign_id,\n ad_account_id,\n cast (created_at as \n timestamp\n) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('creative_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "tmp/stg_snapchat_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "name": "stg_snapchat_ads__creative_history_tmp", "alias": "stg_snapchat_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "97f2460634e450cdce998385dac55f4754305b6c9ea9c8756b1d8cd6ef961e4d"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "creative_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.660516, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_account_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_account_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_account_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__ad_account_history_tmp", "alias": "stg_snapchat_ads__ad_account_history_tmp", "checksum": {"name": "sha256", "checksum": "92091ce537ab3d626fde67bcce6f168cb41ab6ee9975afa0551603e42cc5d78a"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.667369, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_hourly_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_hourly_report_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "alias": "stg_snapchat_ads__ad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "c1fd36fe859740eae7e8c35022731b4090dd0e6a0cc598f8ce7275134e500fe0"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_hourly_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.675028, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('creative_url_tag_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_url_tag_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "alias": "stg_snapchat_ads__creative_url_tag_history_tmp", "checksum": {"name": "sha256", "checksum": "65d5edd0f0e93654debad17d56afa3f77abd57601fa4e296320dec000d272056"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "creative_url_tag_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.681938, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_url_tag_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_squad_hourly_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_hourly_report_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "alias": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "aa1aa691bef011ccfd98f91b4b82a8838fab485131f0e17f53799f7c21bb09f3"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_squad_hourly_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.6892002, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "tmp/stg_snapchat_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "name": "stg_snapchat_ads__campaign_history_tmp", "alias": "stg_snapchat_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "8ba400ddeeb2cf5c0cb71d6361ee8455d1a5272936dce07eaade1606a596cfdb"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.695489, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "name": "stg_snapchat_ads__ad_history_tmp", "alias": "stg_snapchat_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "3cbc363ef9fe699bcc42261d8eda6184c55f2574efa083ca7091aa5ddedd42e9"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.7017019, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_squad_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__ad_squad_history_tmp", "alias": "stg_snapchat_ads__ad_squad_history_tmp", "checksum": {"name": "sha256", "checksum": "20be450378d3826688fd5d75226187b30b17782d6ea922076111a4d6440598f9"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_squad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.7079198, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('campaign_hourly_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_hourly_report_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "alias": "stg_snapchat_ads__campaign_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "b18dc4fa023f874afa53107adf3b50bf02fa4ac757d01f176279822b37a3c1ee"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "campaign_hourly_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1662526938.715193, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report_tmp`"}, "model.microsoft_ads.microsoft_ads__ad_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n {{ dbt_utils.group_by(14) }}\n\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__ad_report"], "unique_id": "model.microsoft_ads.microsoft_ads__ad_report", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__ad_report.sql", "original_file_path": "models/microsoft_ads__ad_report.sql", "name": "microsoft_ads__ad_report", "alias": "microsoft_ads__ad_report", "checksum": {"name": "sha256", "checksum": "b1bf923338efa02f90efd60b96c91cbdbe12414237459994b2aefc5067484985"}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report"], ["stg_microsoft_ads__ad_history"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1662526942.595041, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\n\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`"}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"raw_sql": "{{ 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 date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\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='microsoft_ads__ad_group_passthrough_metrics', transform = 'sum') }}\n from report\n left join accounts\n on report.account_id = accounts.account_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n {{ dbt_utils.group_by(11)}}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__ad_group_report"], "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__ad_group_report.sql", "original_file_path": "models/microsoft_ads__ad_group_report.sql", "name": "microsoft_ads__ad_group_report", "alias": "microsoft_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "85070dccbdefbc4f56fe9f7e941913c0b5981e774816bbe6dfebf17979e5e49b"}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_daily_report"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1662526942.5880792, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report`\n\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`"}, "model.microsoft_ads.microsoft_ads__keyword_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n keywords.keyword_name,\n keywords.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.keyword_id = keywords.keyword_id\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__keyword_report"], "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__keyword_report.sql", "original_file_path": "models/microsoft_ads__keyword_report.sql", "name": "microsoft_ads__keyword_report", "alias": "microsoft_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "d4ef7c4365c804fe1f79aa5f5f161ef6d279e6913e8fbc01433a0fb128aefd74"}, "tags": [], "refs": [["stg_microsoft_ads__keyword_daily_report"], ["stg_microsoft_ads__keyword_history"], ["stg_microsoft_ads__ad_history"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1662526942.609044, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\n\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n keywords.keyword_name,\n keywords.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.keyword_id = keywords.keyword_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`"}, "model.microsoft_ads.microsoft_ads__url_report": {"raw_sql": "{{ 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\nkeywords as (\n \n select * \n from {{ var('keyword_performance_daily_report') }}\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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n {{ dbt_utils.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( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_source') }} , 'Bing') as utm_source,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_medium') }}, 'cpc') as utm_medium,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_campaign') }}, campaigns.campaign_name) as utm_campaign,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_content') }}, ad_groups.ad_group_name) as utm_content,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_term') }}, keywords.keyword_name) as utm_term,\n\n {% else %}\n\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_term') }} as utm_term,\n {% endif %}\n\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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.ad_id = keywords.ad_id\n {{ dbt_utils.group_by(21) }}\n), \n\nfiltered as (\n\n select * \n from joined\n where base_url IS NOT NULL\n)\n\nselect *\nfrom filtered", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_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__keyword_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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__url_report"], "unique_id": "model.microsoft_ads.microsoft_ads__url_report", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__url_report.sql", "original_file_path": "models/microsoft_ads__url_report.sql", "name": "microsoft_ads__url_report", "alias": "microsoft_ads__url_report", "checksum": {"name": "sha256", "checksum": "22586b565505f44bc68d6af6f9ce318cb48d6eba3634f924b55ddc58fed58467"}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report"], ["stg_microsoft_ads__keyword_daily_report"], ["stg_microsoft_ads__ad_history"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "Which campaign the keyword came from; extracted from the `final_url`.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1662526942.626472, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\n\n), \n\nkeywords as (\n \n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n \n\n \n split(\n ads.final_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n\n \n\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n \n\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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.ad_id = keywords.ad_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n), \n\nfiltered as (\n\n select * \n from joined\n where base_url IS NOT NULL\n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`"}, "model.microsoft_ads.microsoft_ads__account_report": {"raw_sql": "{{ 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 date_day,\n accounts.account_name,\n accounts.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(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 {{ dbt_utils.group_by(8)}}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__account_report"], "unique_id": "model.microsoft_ads.microsoft_ads__account_report", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__account_report.sql", "original_file_path": "models/microsoft_ads__account_report.sql", "name": "microsoft_ads__account_report", "alias": "microsoft_ads__account_report", "checksum": {"name": "sha256", "checksum": "f0ad02c3dcce9afcdc378fbdfb9b04befc8adf7dc71fbb9a622acc519f645c75"}, "tags": [], "refs": [["stg_microsoft_ads__account_daily_report"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_timezone": {"name": "account_timezone", "description": "The time zone associated with this account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1662526942.582154, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n)\n\n, joined as (\n\n select\n date_day,\n accounts.account_name,\n accounts.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(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`"}, "model.microsoft_ads.microsoft_ads__search_report": {"raw_sql": "{{ 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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n keywords.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.keyword_id = keywords.keyword_id\n {{ dbt_utils.group_by(16) }}\n\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__search_report"], "unique_id": "model.microsoft_ads.microsoft_ads__search_report", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__search_report.sql", "original_file_path": "models/microsoft_ads__search_report.sql", "name": "microsoft_ads__search_report", "alias": "microsoft_ads__search_report", "checksum": {"name": "sha256", "checksum": "5a23d161c13bab101fc43751d28c21e7dc514b791f53513f5f391112db77c371"}, "tags": [], "refs": [["stg_microsoft_ads__search_daily_report"], ["stg_microsoft_ads__keyword_history"], ["stg_microsoft_ads__ad_history"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The search query string associated with this record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__search_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1662526942.616852, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`\n\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n keywords.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.keyword_id = keywords.keyword_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`"}, "model.microsoft_ads.microsoft_ads__campaign_report": {"raw_sql": "{{ 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 date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.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(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 left join campaigns\n on report.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(12)}}\n)\n\nselect *\nfrom joined", "compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__campaign_report"], "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__campaign_report.sql", "original_file_path": "models/microsoft_ads__campaign_report.sql", "name": "microsoft_ads__campaign_report", "alias": "microsoft_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "d6e2fffaf6595a140dd62c1c3adfc13a12dc71c81d23293cbdc7a942069a0252"}, "tags": [], "refs": [["stg_microsoft_ads__campaign_daily_report"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_timezone": {"name": "campaign_timezone", "description": "The time zone associated with this campaign.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1662526942.601205, "compiled_sql": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.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(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 left join campaigns\n on report.campaign_id = campaigns.campaign_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_report"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__campaign_report.sql", "original_file_path": "models/stg_twitter_ads__campaign_report.sql", "name": "stg_twitter_ads__campaign_report", "alias": "stg_twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "6650a0415c7f5f2610cf0f64b87fb8db8fabdb6039c32d90c348c9b00670eb29"}, "tags": [], "refs": [["stg_twitter_ads__campaign_report_tmp"], ["stg_twitter_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the performance of an ad campaign on a given day, for its placement in Twitter.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the campaign on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.842054, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n campaign_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"raw_sql": "{{ 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 from source\n\n), \n\nfinal as (\n\n select\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 id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp", "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_history"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__line_item_history.sql", "original_file_path": "models/stg_twitter_ads__line_item_history.sql", "name": "stg_twitter_ads__line_item_history", "alias": "stg_twitter_ads__line_item_history", "checksum": {"name": "sha256", "checksum": "46a8268335b747ca45d70e2b6f3c9a426b26a655d751cdc0843b4a3d41af8598"}, "tags": [], "refs": [["stg_twitter_ads__line_item_history_tmp"], ["stg_twitter_ads__line_item_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of each line item. The versions can be differentiated by the updated_at timestamp.", "columns": {"advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "target_cpa": {"name": "target_cpa", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.8232021, "compiled_sql": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp", "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_report"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__line_item_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_report.sql", "name": "stg_twitter_ads__line_item_report", "alias": "stg_twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "1d7ebf7a0f338591ee0ccff54fe8e2b9f9099139c0baf1f621a8c33faeed1e38"}, "tags": [], "refs": [["stg_twitter_ads__line_item_report_tmp"], ["stg_twitter_ads__line_item_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the performance of a line item (ad group) on a given day, for its placement in Twitter.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.846577, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n line_item_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"raw_sql": "{{ 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 from source\n\n), \n\nfinal as (\n\n select\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 id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp", "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_history"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__campaign_history.sql", "original_file_path": "models/stg_twitter_ads__campaign_history.sql", "name": "stg_twitter_ads__campaign_history", "alias": "stg_twitter_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "774d386e9ad64cc31bc4067ef71444c35b0dd5b24e7635905ca4f774d6996934"}, "tags": [], "refs": [["stg_twitter_ads__campaign_history_tmp"], ["stg_twitter_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of each campaign. The versions can be differentiated by the updated_at timestamp.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The time the campaign will end", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "is_standard_delivery": {"name": "is_standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.811949, "compiled_sql": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"raw_sql": "{{ 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 from source\n\n), spend_calc as (\n\n select\n {{ dbt_utils.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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_report"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_report.sql", "name": "stg_twitter_ads__promoted_tweet_report", "alias": "stg_twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "c601826b4c1283a89eef7936949615070c86d9ad479759b463173348c7b74ebf"}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report_tmp"], ["stg_twitter_ads__promoted_tweet_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the performance of a promoted tweet on a given day, in the tweet's defined placement.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend (in micros) for the promoted tweet on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the related promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the promoted tweet on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.831671, "compiled_sql": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), spend_calc as (\n\n select\n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n promoted_tweet_id,\n placement,\n clicks as clicks,\n impressions as impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks as url_clicks\n\n \n\n\n\n\n \n from renamed\n\n)\n\nselect * from spend_calc", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`"}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \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", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_tmp", "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__tweet.sql", "original_file_path": "models/stg_twitter_ads__tweet.sql", "name": "stg_twitter_ads__tweet", "alias": "stg_twitter_ads__tweet", "checksum": {"name": "sha256", "checksum": "495071fcb565d9bcb5f607119259a6a0db5f562833a4c5b4e6b415947b763e21"}, "tags": [], "refs": [["stg_twitter_ads__tweet_tmp"], ["stg_twitter_ads__tweet_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a tweet, promoted or not.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "Unique identifier of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "If provided, the non-public title of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "Full text of the tweet's content.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.853874, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`"}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"raw_sql": "{{ 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 from source\n\n), \n\nfinal as (\n\n select\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 id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history_tmp", "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__account_history"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__account_history.sql", "original_file_path": "models/stg_twitter_ads__account_history.sql", "name": "stg_twitter_ads__account_history", "alias": "stg_twitter_ads__account_history", "checksum": {"name": "sha256", "checksum": "9ac9bf89b2163524505de7f16c38d7103b3af267458bf5190428238b25b87bd4"}, "tags": [], "refs": [["stg_twitter_ads__account_history_tmp"], ["stg_twitter_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of each account. The versions can be differentiated by the updated_at timestamp.", "columns": {"approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_switched_timestamp": {"name": "timezone_switched_timestamp", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "salt": {"name": "salt", "description": "The random encryption key used to hash data.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.804849, "compiled_sql": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"raw_sql": "{{ 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 from source\n\n), \n\nfinal as (\n\n select\n display_url,\n expanded_url,\n index,\n indices,\n tweet_id,\n url,\n {{ dbt_utils.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 {{ dbt_utils.get_url_parameter('expanded_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('expanded_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('expanded_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('expanded_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('expanded_url', 'utm_term') }} as utm_term\n \n from fields\n\n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_url_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp", "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet_url"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__tweet_url.sql", "original_file_path": "models/stg_twitter_ads__tweet_url.sql", "name": "stg_twitter_ads__tweet_url", "alias": "stg_twitter_ads__tweet_url", "checksum": {"name": "sha256", "checksum": "36afff7a6b77de2e15d6bff3bf9ed9bd4d05157920ed28a9999597874ce1953a"}, "tags": [], "refs": [["stg_twitter_ads__tweet_url_tmp"], ["stg_twitter_ads__tweet_url_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a URL used in a tweet.", "columns": {"display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "The 't.co' shortened URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet_url.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.837672, "compiled_sql": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\n display_url,\n expanded_url,\n index,\n indices,\n tweet_id,\n url,\n \n\n \n split(\n expanded_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n \n from fields\n\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"raw_sql": "{{ 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 from source\n\n), \n\nfinal as (\n\n select\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 id order by updated_at desc) = 1 as is_latest_version\n from fields \n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_history"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_history.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_history.sql", "name": "stg_twitter_ads__promoted_tweet_history", "alias": "stg_twitter_ads__promoted_tweet_history", "checksum": {"name": "sha256", "checksum": "c80a0cb29ef10133607a7a85d12f01b4a3dfe4100939746893a2ac56d17dd03b"}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_history_tmp"], ["stg_twitter_ads__promoted_tweet_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of each promoted tweet. The versions can be differentiated by the updated_at timestamp.", "columns": {"approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526942.827329, "compiled_sql": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('tweet_url') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.tweet_url"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_url_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_url_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "name": "stg_twitter_ads__tweet_url_tmp", "alias": "stg_twitter_ads__tweet_url_tmp", "checksum": {"name": "sha256", "checksum": "9a7338e00449b6c913d5f3c059679ed5be9c64d82f22bb155f6b807124089552"}, "tags": [], "refs": [], "sources": [["twitter_ads", "tweet_url"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.1161852, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_url_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('tweet') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.tweet"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_tmp.sql", "name": "stg_twitter_ads__tweet_tmp", "alias": "stg_twitter_ads__tweet_tmp", "checksum": {"name": "sha256", "checksum": "ed6397b8a2245ad4f4e79b75ed4ed8de08fdc4049d651c49e3849db6c073cafd"}, "tags": [], "refs": [], "sources": [["twitter_ads", "tweet"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.128213, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('promoted_tweet_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_report_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "alias": "stg_twitter_ads__promoted_tweet_report_tmp", "checksum": {"name": "sha256", "checksum": "6bf2743294837bc2b2316127f2df7a40126f942a226653c2f7668e78d972856a"}, "tags": [], "refs": [], "sources": [["twitter_ads", "promoted_tweet_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.141323, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('line_item_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_history"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_history_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__line_item_history_tmp", "alias": "stg_twitter_ads__line_item_history_tmp", "checksum": {"name": "sha256", "checksum": "d796be56366271bfcc2f2d4d23b50372472b0e47a1ba5d62f09ea7218d842b07"}, "tags": [], "refs": [], "sources": [["twitter_ads", "line_item_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.15112, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_report_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "name": "stg_twitter_ads__campaign_report_tmp", "alias": "stg_twitter_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "cde4096c85a4069b4865fe37600bed81c625f2ec5e1cb91863d50888a217f562"}, "tags": [], "refs": [], "sources": [["twitter_ads", "campaign_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.16083, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_history_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "name": "stg_twitter_ads__campaign_history_tmp", "alias": "stg_twitter_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "343754878288e6e847d9af5524d0dd1b09edffac90a7e83f0f8dbd610c028837"}, "tags": [], "refs": [], "sources": [["twitter_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.175327, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('line_item_report') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_report_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__line_item_report_tmp", "alias": "stg_twitter_ads__line_item_report_tmp", "checksum": {"name": "sha256", "checksum": "9e053b03293d2511468496eb5fafd60ca8a3883594d2b2a24bb61862fb53c552"}, "tags": [], "refs": [], "sources": [["twitter_ads", "line_item_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.201098, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('account_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__account_history_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__account_history_tmp.sql", "name": "stg_twitter_ads__account_history_tmp", "alias": "stg_twitter_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "76ca411a663d62ed96988cf38c0ea000cb691006c8a9f4a6c326f357d874a7fc"}, "tags": [], "refs": [], "sources": [["twitter_ads", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.2121248, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"raw_sql": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('promoted_tweet_history') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_history"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_history_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "alias": "stg_twitter_ads__promoted_tweet_history_tmp", "checksum": {"name": "sha256", "checksum": "b528c88b68e5a01988e4fb4467e2298ac2be47cfe74ba3ac840044fd214f59da"}, "tags": [], "refs": [], "sources": [["twitter_ads", "promoted_tweet_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1662526939.224829, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history_tmp`"}, "model.linkedin.linkedin_ads__campaign_group_report": {"raw_sql": "{{ 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 from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n {{ dbt_utils.group_by(n=12) }}\n\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__campaign_group_report"], "unique_id": "model.linkedin.linkedin_ads__campaign_group_report", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__campaign_group_report.sql", "original_file_path": "models/linkedin_ads__campaign_group_report.sql", "name": "linkedin_ads__campaign_group_report", "alias": "linkedin_ads__campaign_group_report", "checksum": {"name": "sha256", "checksum": "bc4b9b9b612d1fbbecffc8059005e832e333df998e1b9aad50a3a2dc71125885"}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the campaign group level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1662526943.084554, "compiled_sql": "\n\nwith campaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`"}, "model.linkedin.linkedin_ads__creative_report": {"raw_sql": "{{ 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 from {{ var('ad_analytics_by_creative') }}\n),\n\nfinal as (\n\n select \n report.date_day,\n creative.creative_id,\n creative.version_tag,\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.type,\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 creative.call_to_action_label_type,\n account.currency,\n creative.last_modified_at,\n creative.created_at,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join campaign \n on creative.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n {{ dbt_utils.group_by(n=18) }}\n\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__creative_report"], "unique_id": "model.linkedin.linkedin_ads__creative_report", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__creative_report.sql", "original_file_path": "models/linkedin_ads__creative_report.sql", "name": "linkedin_ads__creative_report", "alias": "linkedin_ads__creative_report", "checksum": {"name": "sha256", "checksum": "ad0eb0c1b25863f9e362dc4aa0d568a06f4a12bed2bd47cfb6bb4cb51ac658d3"}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__campaign_group_history"], ["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the creative level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the creative's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the creative's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text with Sponsored Link to landing page on your site.\nSPONSORED_STATUS_UPDATE - Sponsored status update from a profile page.\nSPONSORED_INMAILS - Single message ad delivered to the member's inbox\nSPONSORED_MESSAGE - Conversation ad containing a tree of pre-determined messages delivered to the member's inbox\nSPONSORED_VIDEO - Sponsored videos.\nSPONSORED_UPDATE_CAROUSEL - Sponsored Carousels\nFOLLOW_COMPANY_V2 - Dynamic Follow Ad\nSPOTLIGHT_V2 - Dynamic Spotlight Ad\nJOBS_V2 - Dynamic Job Ad\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the creative.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "call_to_action_label_type": {"name": "call_to_action_label_type", "description": "The labeled call-to-action on this ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__creative_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1662526943.095267, "compiled_sql": "\n\nwith creative as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\n),\n\nfinal as (\n\n select \n report.date_day,\n creative.creative_id,\n creative.version_tag,\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.type,\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 creative.call_to_action_label_type,\n account.currency,\n creative.last_modified_at,\n creative.created_at,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join creative \n on report.creative_id = creative.creative_id\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`"}, "model.linkedin.linkedin_ads__campaign_report": {"raw_sql": "{{ 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 from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \n report.date_day,\n campaign.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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n {{ dbt_utils.group_by(n=29) }}\n\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__campaign_report"], "unique_id": "model.linkedin.linkedin_ads__campaign_report", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__campaign_report.sql", "original_file_path": "models/linkedin_ads__campaign_report.sql", "name": "linkedin_ads__campaign_report", "alias": "linkedin_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "1c31aeced5e5a136b419b285d15509067f2556a279da032a1002b4a3fa18879c"}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__campaign_group_history"], ["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the campaign level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1662526943.077298, "compiled_sql": "\n\nwith campaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \n report.date_day,\n campaign.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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\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\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`"}, "model.linkedin.linkedin_ads__account_report": {"raw_sql": "{{ 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 from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join account \n on campaign.account_id = account.account_id\n\n {{ dbt_utils.group_by(n=9) }}\n\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__account_report"], "unique_id": "model.linkedin.linkedin_ads__account_report", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__account_report.sql", "original_file_path": "models/linkedin_ads__account_report.sql", "name": "linkedin_ads__account_report", "alias": "linkedin_ads__account_report", "checksum": {"name": "sha256", "checksum": "081d8687fbed2359f5893891308f9b3a0f25a7982a8b206f416f1a60d5c1aa6f"}, "tags": [], "refs": [["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the account level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1662526943.060986, "compiled_sql": "\n\nwith account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n left join account \n on campaign.account_id = account.account_id\n\n group by 1,2,3,4,5,6,7,8,9\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`"}, "model.linkedin.linkedin_ads__url_report": {"raw_sql": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith creative as (\n\n select *\n from {{ var('creative_history') }}\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 from {{ var('ad_analytics_by_creative') }}\n),\n\nfinal as (\n\n select \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 creative.creative_id,\n creative.version_tag,\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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join campaign \n on creative.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n where creative.click_uri is not null\n\n {{ dbt_utils.group_by(n=19) }}\n\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__url_report"], "unique_id": "model.linkedin.linkedin_ads__url_report", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__url_report.sql", "original_file_path": "models/linkedin_ads__url_report.sql", "name": "linkedin_ads__url_report", "alias": "linkedin_ads__url_report", "checksum": {"name": "sha256", "checksum": "4608912d1404e112239e56eb507fa1f1b367081307127a57687d70b340ea847e"}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__campaign_group_history"], ["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the url level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the creative's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the creative's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1662526943.106242, "compiled_sql": "\n\nwith creative as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\n),\n\nfinal as (\n\n select \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 creative.creative_id,\n creative.version_tag,\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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join creative \n on report.creative_id = creative.creative_id\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n where creative.click_uri is not null\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_history_account_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_history_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "not_null_stg_microsoft_ads__account_history_account_id", "alias": "not_null_stg_microsoft_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.6376529, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_microsoft_ads__account_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at.5975327479": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at.5975327479", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at", "alias": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7"}, "created_at": 1662526939.640503, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\n group by account_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__account_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_daily_report_account_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__account_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.655723, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_microsoft_ads__account_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_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_cc3a3d15707b6220c07fd845626d47d3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__account_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3"}, "created_at": 1662526939.658085, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__account_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_history_ad_group_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.666678, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_microsoft_ads__ad_group_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at.12004c9de0": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at.12004c9de0", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at", "alias": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb"}, "created_at": 1662526939.669277, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_group_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.675589, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_microsoft_ads__ad_group_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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.8792b4adf4": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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.8792b4adf4", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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_3da4052d148940c4b772fa07b9cd0016", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016"}, "created_at": 1662526939.678231, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_group_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_history_ad_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "not_null_stg_microsoft_ads__ad_history_ad_id", "alias": "not_null_stg_microsoft_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.688501, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_microsoft_ads__ad_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at.1f05b4ee6f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at.1f05b4ee6f", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at", "alias": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb"}, "created_at": 1662526939.691123, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_history`\n group by ad_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_daily_report_ad_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.6969962, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_microsoft_ads__ad_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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.80e8146841": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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.80e8146841", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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_29e31bfeb4535a5db2d2c94e28201269", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269"}, "created_at": 1662526939.699577, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_history_campaign_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "alias": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.709923, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_microsoft_ads__campaign_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at.d2a9279427": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at.d2a9279427", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at", "alias": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0"}, "created_at": 1662526939.712272, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\n group by campaign_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__campaign_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__campaign_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.718922, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_microsoft_ads__campaign_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_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__campaign_daily_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_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_0a679e9606c18c2d49406108e30d9e3d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__campaign_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d"}, "created_at": 1662526939.721416, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`\n group by date_day, account_id, campaign_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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__campaign_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_history_keyword_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "alias": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.730641, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_microsoft_ads__keyword_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at.e1c525286c": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at.e1c525286c", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at", "alias": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67"}, "created_at": 1662526939.733376, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\n group by keyword_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__keyword_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__keyword_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.73956, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_microsoft_ads__keyword_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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.c6f46d202a": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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.c6f46d202a", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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_9a7282cfedb49cdf2e4d14422bce0ed7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__keyword_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7"}, "created_at": 1662526939.7424488, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__keyword_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__search_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__search_daily_report_search_query"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__search_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.753402, "compiled_sql": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_query", "file_key_name": "models.stg_microsoft_ads__search_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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.03cf031d0c": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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.03cf031d0c", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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_b05df3e2693998bbea08961dfab31379", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__search_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379"}, "created_at": 1662526939.756175, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, language, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__search_daily_report"}, "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__advertiser_report_date_day", "alias": "not_null_tiktok_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.838958, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__advertiser_report"}, "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_advertiser_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__advertiser_report_advertiser_id", "alias": "not_null_tiktok_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.8418272, "compiled_sql": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.tiktok_ads__advertiser_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day.d298bb3cf9": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day.d298bb3cf9", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89"}, "created_at": 1662526939.8444002, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\n group by advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__advertiser_report"}, "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__ad_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__ad_report_date_day", "alias": "not_null_tiktok_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.851294, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__ad_report"}, "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_ad_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__ad_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__ad_report_ad_id", "alias": "not_null_tiktok_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.854051, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.tiktok_ads__ad_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85"}, "created_at": 1662526939.8571022, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__ad_report"}, "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__ad_group_report_date_day", "alias": "not_null_tiktok_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.864675, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__ad_group_report"}, "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_ad_group_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.8671649, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.tiktok_ads__ad_group_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0"}, "created_at": 1662526939.8701, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__ad_group_report"}, "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__campaign_report_date_day", "alias": "not_null_tiktok_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.8776681, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__campaign_report"}, "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_campaign_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_campaign_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__campaign_report_campaign_id", "alias": "not_null_tiktok_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.880117, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.tiktok_ads__campaign_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day.03c4f86b19": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day.03c4f86b19", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645"}, "created_at": 1662526939.88258, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__campaign_report"}, "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__url_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__url_report_date_day", "alias": "not_null_tiktok_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.8894248, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__url_report"}, "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_ad_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__url_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__url_report_ad_id", "alias": "not_null_tiktok_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.892192, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.tiktok_ads__url_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50"}, "created_at": 1662526939.895232, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__url_report"}, "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_campaign_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__campaign_report_campaign_id", "alias": "not_null_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.969244, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.twitter_ads__campaign_report"}, "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__campaign_report_date_day", "alias": "not_null_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.9717948, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.twitter_ads__campaign_report"}, "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__campaign_report_placement", "alias": "not_null_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.9743109, "compiled_sql": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__campaign_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id.2b09fa5421": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id", "placement", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id.2b09fa5421", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id", "alias": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63"}, "created_at": 1662526939.977271, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, placement, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__campaign_report"}, "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__line_item_report_date_day", "alias": "not_null_twitter_ads__line_item_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.984194, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.twitter_ads__line_item_report"}, "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_line_item_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/twitter.yml", "name": "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": ""}, "tags": [], "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_line_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.9866712, "compiled_sql": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "line_item_id", "file_key_name": "models.twitter_ads__line_item_report"}, "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__line_item_report_placement", "alias": "not_null_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.989258, "compiled_sql": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__line_item_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "line_item_id", "placement", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168"}, "created_at": 1662526939.9921432, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, line_item_id, placement, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__line_item_report"}, "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__account_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__account_report_date_day", "alias": "not_null_twitter_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526939.999568, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.twitter_ads__account_report"}, "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__account_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__account_report_placement", "alias": "not_null_twitter_ads__account_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.002038, "compiled_sql": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__account_report"}, "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_account_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__account_report_account_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__account_report_account_id", "alias": "not_null_twitter_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.004736, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.twitter_ads__account_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement.a29cf85a4f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "placement"], "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement.a29cf85a4f", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement", "alias": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f"}, "created_at": 1662526940.0078661, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, placement\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__account_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_date_day", "alias": "not_null_twitter_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.0148952, "column_name": "date_day", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_line_item_id.4982336b04": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_line_item_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_line_item_id.4982336b04", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_line_item_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_line_item_id", "alias": "not_null_twitter_ads__keyword_report_line_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.0173419, "column_name": "line_item_id", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword.7f254683d7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_keyword"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword.7f254683d7", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_keyword.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_keyword", "alias": "not_null_twitter_ads__keyword_report_keyword", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.019799, "column_name": "keyword", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_placement.1cf3231796": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_placement.1cf3231796", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_placement", "alias": "not_null_twitter_ads__keyword_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.022788, "column_name": "placement", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id.66e2c0d578": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "line_item_id", "keyword", "placement", "account_id", "campaign_id"], "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id.66e2c0d578", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id", "alias": "dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8"}, "created_at": 1662526940.025666, "column_name": null, "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__promoted_tweet_report_placement", "alias": "not_null_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.033525, "compiled_sql": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__promoted_tweet_report"}, "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "name": "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": ""}, "tags": [], "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.035949, "compiled_sql": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__promoted_tweet_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1"}, "created_at": 1662526940.0388658, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__promoted_tweet_report"}, "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__url_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__url_report_date_day", "alias": "not_null_twitter_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.046744, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.twitter_ads__url_report"}, "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__url_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__url_report_placement", "alias": "not_null_twitter_ads__url_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.0491562, "compiled_sql": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__url_report"}, "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_promoted_tweet_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__url_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__url_report_promoted_tweet_id", "alias": "not_null_twitter_ads__url_report_promoted_tweet_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_promoted_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.051553, "compiled_sql": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__url_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7"}, "created_at": 1662526940.054772, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__url_report"}, "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__url_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__url_report_date_day", "alias": "not_null_pinterest_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.105222, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__url_report"}, "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_pin_promotion_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__url_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__url_report_pin_promotion_id", "alias": "not_null_pinterest_ads__url_report_pin_promotion_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_pin_promotion_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.108143, "compiled_sql": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "pin_promotion_id", "file_key_name": "models.pinterest_ads__url_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4"}, "created_at": 1662526940.110348, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__url_report"}, "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__ad_group_report_date_day", "alias": "not_null_pinterest_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.116342, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__ad_group_report"}, "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_ad_group_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/pinterest.yml", "name": "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": ""}, "tags": [], "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.118552, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.pinterest_ads__ad_group_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "advertiser_id", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506"}, "created_at": 1662526940.120565, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, advertiser_id, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__ad_group_report"}, "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__campaign_report_date_day", "alias": "not_null_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.127692, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__campaign_report"}, "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_campaign_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__campaign_report_campaign_id", "alias": "not_null_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.1305048, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.pinterest_ads__campaign_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day.b5752d5279": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day.b5752d5279", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334"}, "created_at": 1662526940.133631, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__campaign_report"}, "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__advertiser_report_date_day", "alias": "not_null_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.13956, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__advertiser_report"}, "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_advertiser_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__advertiser_report_advertiser_id", "alias": "not_null_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.1415439, "compiled_sql": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.pinterest_ads__advertiser_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day.990badbc11": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day.990badbc11", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f"}, "created_at": 1662526940.143826, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\n group by advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__advertiser_report"}, "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__keyword_report_date_day", "alias": "not_null_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.14883, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__keyword_report"}, "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_keyword_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__keyword_report_keyword_id", "alias": "not_null_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.150826, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.pinterest_ads__keyword_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f"}, "created_at": 1662526940.1537359, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__keyword_report"}, "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__pin_promotion_report_date_day", "alias": "not_null_pinterest_ads__pin_promotion_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.1596, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__pin_promotion_report"}, "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "name": "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": ""}, "tags": [], "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.161723, "compiled_sql": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "pin_promotion_id", "file_key_name": "models.pinterest_ads__pin_promotion_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c"}, "created_at": 1662526940.163774, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__pin_promotion_report"}, "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('google_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__url_report_base_url"], "unique_id": "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__url_report_base_url.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__url_report_base_url", "alias": "not_null_google_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__url_report_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.262888, "compiled_sql": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "base_url", "file_key_name": "models.google_ads__url_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day.a59b8e007f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day.a59b8e007f", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b"}, "created_at": 1662526940.265494, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__url_report"}, "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('google_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__account_report_account_id"], "unique_id": "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__account_report_account_id.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__account_report_account_id", "alias": "not_null_google_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.2721019, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.google_ads__account_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day.c52089771e": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day.c52089771e", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day", "alias": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9"}, "created_at": 1662526940.2747898, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\n group by account_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__account_report"}, "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('google_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__ad_group_report_ad_group_id"], "unique_id": "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/google_ads.yml", "name": "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": ""}, "tags": [], "refs": [["google_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.280385, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.google_ads__ad_group_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day.7c8e1c1a2f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day.7c8e1c1a2f", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f"}, "created_at": 1662526940.2831511, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__ad_group_report"}, "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('google_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__ad_report_ad_id"], "unique_id": "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__ad_report_ad_id.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__ad_report_ad_id", "alias": "not_null_google_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.2890081, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.google_ads__ad_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day.fe37ea1a7b": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day.fe37ea1a7b", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a"}, "created_at": 1662526940.2915351, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__ad_report"}, "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('google_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__campaign_report_campaign_id"], "unique_id": "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__campaign_report_campaign_id.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__campaign_report_campaign_id", "alias": "not_null_google_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.314135, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.google_ads__campaign_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "advertising_channel_type", "advertising_channel_subtype", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day", "alias": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a"}, "created_at": 1662526940.317846, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, advertising_channel_type, advertising_channel_subtype, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__campaign_report"}, "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "criterion_id", "model": "{{ get_where_subquery(ref('google_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__keyword_report_criterion_id"], "unique_id": "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__keyword_report_criterion_id.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__keyword_report_criterion_id", "alias": "not_null_google_ads__keyword_report_criterion_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__keyword_report_criterion_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.3253691, "compiled_sql": "\n \n \n\n\n\nselect criterion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "criterion_id", "file_key_name": "models.google_ads__keyword_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day.214ff3497d": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "criterion_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day.214ff3497d", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day", "alias": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97"}, "created_at": 1662526940.328087, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, criterion_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__keyword_report"}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.3739111, "compiled_sql": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative"}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.376468, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id.973a01e410": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "creative_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id.973a01e410", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id", "alias": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9"}, "created_at": 1662526940.3792949, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, creative_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\n group by date_day, creative_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative"}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.385582, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign"}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.3889751, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id.b03f3dc81d": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id.b03f3dc81d", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id", "alias": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c"}, "created_at": 1662526940.39199, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\n group by date_day, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign"}, "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__creative_history_creative_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__creative_history_creative_id", "alias": "not_null_stg_linkedin_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__creative_history_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.400394, "compiled_sql": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_linkedin_ads__creative_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__creative_history_version_tag"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__creative_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__creative_history_version_tag", "alias": "not_null_stg_linkedin_ads__creative_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__creative_history_version_tag.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.402882, "compiled_sql": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__creative_history"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["version_tag", "creative_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__creative_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id", "alias": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc"}, "created_at": 1662526940.405965, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n version_tag, creative_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\n group by version_tag, creative_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__creative_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_campaign_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "alias": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.412452, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_linkedin_ads__campaign_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_version_tag"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__campaign_history_version_tag", "alias": "not_null_stg_linkedin_ads__campaign_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.416106, "compiled_sql": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__campaign_history"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id.2d20780793": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["version_tag", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id.2d20780793", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id", "alias": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361"}, "created_at": 1662526940.4192011, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n version_tag, campaign_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n group by version_tag, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__campaign_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_group_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id", "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a"}, "created_at": 1662526940.427086, "compiled_sql": "\n \n \n\n\n\nselect campaign_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_group_id", "file_key_name": "models.stg_linkedin_ads__campaign_group_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "last_modified_at", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at", "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd"}, "created_at": 1662526940.4305751, "compiled_sql": "\n \n \n\n\n\nselect last_modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\nwhere last_modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "last_modified_at", "file_key_name": "models.stg_linkedin_ads__campaign_group_history"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id.e761ddb4da": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["last_modified_at", "campaign_group_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id.e761ddb4da", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id", "alias": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14"}, "created_at": 1662526940.4345942, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n last_modified_at, campaign_group_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__campaign_group_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_account_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_account_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__account_history_account_id", "alias": "not_null_stg_linkedin_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.4420428, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_linkedin_ads__account_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_version_tag"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__account_history_version_tag", "alias": "not_null_stg_linkedin_ads__account_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_version_tag.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.445407, "compiled_sql": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__account_history"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag.9a655993ce": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "version_tag"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag.9a655993ce", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag", "alias": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55"}, "created_at": 1662526940.4486232, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, version_tag\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n group by account_id, version_tag\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__account_history"}, "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('facebook_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__url_report_base_url"], "unique_id": "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__url_report_base_url.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__url_report_base_url", "alias": "not_null_facebook_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_report_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.5398002, "compiled_sql": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "base_url", "file_key_name": "models.facebook_ads__url_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "ad_set_id", "ad_id"], "model": "{{ get_where_subquery(ref('facebook_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id", "alias": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb"}, "created_at": 1662526940.542434, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_set_id, ad_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__url_report"}, "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('facebook_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_report_ad_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__ad_report_ad_id.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__ad_report_ad_id", "alias": "not_null_facebook_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.550542, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.facebook_ads__ad_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "ad_set_id", "ad_id"], "model": "{{ get_where_subquery(ref('facebook_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id", "alias": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e"}, "created_at": 1662526940.5533068, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_set_id, ad_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__ad_report"}, "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_set_id", "model": "{{ get_where_subquery(ref('facebook_ads__ad_set_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_set_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_set_report_ad_set_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__ad_set_report_ad_set_id.sql", "original_file_path": "models/facebook.yml", "name": "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": ""}, "tags": [], "refs": [["facebook_ads__ad_set_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_set_report_ad_set_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.5607638, "compiled_sql": "\n \n \n\n\n\nselect ad_set_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_set_id", "file_key_name": "models.facebook_ads__ad_set_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id.3dd4da872f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "ad_set_id"], "model": "{{ get_where_subquery(ref('facebook_ads__ad_set_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id.3dd4da872f", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id", "alias": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__ad_set_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74"}, "created_at": 1662526940.563193, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_set_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__ad_set_report"}, "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('facebook_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__campaign_report_campaign_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__campaign_report_campaign_id.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__campaign_report_campaign_id", "alias": "not_null_facebook_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.570071, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.facebook_ads__campaign_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id.7cd75107e6": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id"], "model": "{{ get_where_subquery(ref('facebook_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id.7cd75107e6", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id", "alias": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1"}, "created_at": 1662526940.57272, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__campaign_report"}, "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('facebook_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__account_report_account_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__account_report_account_id.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__account_report_account_id", "alias": "not_null_facebook_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.5794492, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.facebook_ads__account_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id.5a94423e40": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id"], "model": "{{ get_where_subquery(ref('facebook_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id.5a94423e40", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id", "alias": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e"}, "created_at": 1662526940.582185, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\n group by date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__account_report"}, "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('facebook_ads__url_tags')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__url_tags__fivetran_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__url_tags__fivetran_id.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__url_tags__fivetran_id", "alias": "not_null_facebook_ads__url_tags__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__url_tags"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_tags__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.5880818, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_tags`\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.facebook_ads__url_tags"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type.ba044777d3": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_fivetran_id", "key", "type"], "model": "{{ get_where_subquery(ref('facebook_ads__url_tags')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type.ba044777d3", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type", "alias": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__url_tags"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a"}, "created_at": 1662526940.5912058, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_id, key, type\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_tags`\n group by _fivetran_id, key, type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__url_tags"}, "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__account_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__account_report_date_day", "alias": "not_null_snapchat_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.62895, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__account_report"}, "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_account_id", "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_ad_account_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__account_report_ad_account_id.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__account_report_ad_account_id", "alias": "not_null_snapchat_ads__account_report_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_ad_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.6315022, "compiled_sql": "\n \n \n\n\n\nselect ad_account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_account_id", "file_key_name": "models.snapchat_ads__account_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day.da5545b8e6": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_account_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day.da5545b8e6", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day", "alias": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292"}, "created_at": 1662526940.633895, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_account_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__account_report"}, "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__ad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__ad_report_date_day", "alias": "not_null_snapchat_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.6402931, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__ad_report"}, "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_ad_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__ad_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__ad_report_ad_id", "alias": "not_null_snapchat_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.642771, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.snapchat_ads__ad_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day.68c2c0de57": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day.68c2c0de57", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day", "alias": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b"}, "created_at": 1662526940.645498, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\n group by ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__ad_report"}, "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__campaign_report_date_day", "alias": "not_null_snapchat_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.651655, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__campaign_report"}, "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_campaign_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_campaign_id.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__campaign_report_campaign_id", "alias": "not_null_snapchat_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.6541262, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.snapchat_ads__campaign_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day.dfc5f7da4e": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day.dfc5f7da4e", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e"}, "created_at": 1662526940.6568341, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\n group by campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__campaign_report"}, "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__ad_squad_report_date_day", "alias": "not_null_snapchat_ads__ad_squad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.663025, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__ad_squad_report"}, "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_ad_squad_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "original_file_path": "models/snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.6654289, "compiled_sql": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_squad_id", "file_key_name": "models.snapchat_ads__ad_squad_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day.027a518f3c": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_squad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day.027a518f3c", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day", "alias": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f"}, "created_at": 1662526940.668718, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__ad_squad_report"}, "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__url_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__url_report_date_day", "alias": "not_null_snapchat_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.674881, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__url_report"}, "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_ad_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__url_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__url_report_ad_id", "alias": "not_null_snapchat_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.677654, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.snapchat_ads__url_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day", "alias": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7"}, "created_at": 1662526940.680022, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\n group by ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__url_report"}, "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_google_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_history_account_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__account_history_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__account_history_account_id", "alias": "not_null_stg_google_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.7391338, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_google_ads__account_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at.19f35742f1": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at.19f35742f1", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at", "alias": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3"}, "created_at": 1662526940.74194, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n group by account_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__account_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_history_ad_group_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.74825, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_google_ads__ad_group_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at.096e8da5fd": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at.096e8da5fd", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at", "alias": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a"}, "created_at": 1662526940.750682, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_history_ad_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__ad_history_ad_id", "alias": "not_null_stg_google_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.757368, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_google_ads__ad_history"}, "test.google_ads_source.dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_not_match_regex_list(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5\") }}", "test_metadata": {"name": "expect_column_values_to_not_match_regex_list", "kwargs": {"regex_list": ",", "match_on": "any", "column_name": "source_final_urls", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "warn", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___"], "unique_id": "test.google_ads_source.dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___", "alias": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5.sql", "build_path": null, "deferred": false, "unrendered_config": {"severity": "warn", "alias": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5"}, "created_at": 1662526940.760372, "compiled_sql": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n\n \nregexp_instr(source_final_urls, ',', 1, 1)\n\n\n = 0\n as expression\n\n\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "source_final_urls", "file_key_name": "models.stg_google_ads__ad_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at", "alias": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74"}, "created_at": 1662526940.781086, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__ad_stats_date_day", "alias": "not_null_stg_google_ads__ad_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.787642, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__ad_stats"}, "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_ad_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_stats_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__ad_stats_ad_id", "alias": "not_null_stg_google_ads__ad_stats_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.790236, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_google_ads__ad_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day", "alias": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1"}, "created_at": 1662526940.7931268, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_network_type, device, ad_group_id, keyword_ad_group_criterion, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_stats"}, "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_history_campaign_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__campaign_history_campaign_id", "alias": "not_null_stg_google_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.8011808, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_google_ads__campaign_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at.8bf2733e86": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at.8bf2733e86", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at", "alias": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d"}, "created_at": 1662526940.803786, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history`\n group by campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__campaign_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "criterion_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_criterion_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_criterion_history_criterion_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__ad_group_criterion_history_criterion_id", "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_criterion_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031"}, "created_at": 1662526940.810236, "compiled_sql": "\n \n \n\n\n\nselect criterion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_criterion_history`\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "criterion_id", "file_key_name": "models.stg_google_ads__ad_group_criterion_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at.197bbc6816": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["criterion_id", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_criterion_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at.197bbc6816", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at", "alias": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_criterion_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8"}, "created_at": 1662526940.812822, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n criterion_id, ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_criterion_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_criterion_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.819411, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__ad_group_stats"}, "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_ad_group_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.8222132, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_google_ads__ad_group_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day.ed55af6020": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "device", "ad_network_type", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day.ed55af6020", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day", "alias": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c"}, "created_at": 1662526940.82532, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, device, ad_network_type, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_stats"}, "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__campaign_stats_date_day", "alias": "not_null_stg_google_ads__campaign_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.832615, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__campaign_stats"}, "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_campaign_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__campaign_stats_campaign_id", "alias": "not_null_stg_google_ads__campaign_stats_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.8350542, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_google_ads__campaign_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day.69600f7d45": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "ad_network_type", "device", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day.69600f7d45", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day", "alias": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259"}, "created_at": 1662526940.837666, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, ad_network_type, device, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__campaign_stats"}, "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__keyword_stats_date_day", "alias": "not_null_stg_google_ads__keyword_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.845012, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__keyword_stats"}, "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_keyword_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_keyword_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__keyword_stats_keyword_id", "alias": "not_null_stg_google_ads__keyword_stats_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.8476748, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_google_ads__keyword_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day.8f15198e68": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day.8f15198e68", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day", "alias": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534"}, "created_at": 1662526940.850058, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`\n group by keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__keyword_stats"}, "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_account_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__account_stats_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__account_stats_account_id", "alias": "not_null_stg_google_ads__account_stats_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.856448, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_google_ads__account_stats"}, "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__account_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__account_stats_date_day", "alias": "not_null_stg_google_ads__account_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526940.859006, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__account_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day.3019f8a860": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "device", "ad_network_type", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day.3019f8a860", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day", "alias": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3"}, "created_at": 1662526940.861542, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, device, ad_network_type, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__account_stats"}, "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_ad_group_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "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": ""}, "tags": [], "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.029232, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.apple_search_ads__ad_group_report"}, "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "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": ""}, "tags": [], "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.0326579, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__ad_group_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day.19d180bab9": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "campaign_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day.19d180bab9", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2"}, "created_at": 1662526941.035618, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__ad_group_report"}, "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_ad_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__ad_report_ad_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__ad_report_ad_id", "alias": "not_null_apple_search_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.044379, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.apple_search_ads__ad_report"}, "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__ad_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__ad_report_date_day", "alias": "not_null_apple_search_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.047287, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__ad_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "campaign_id", "ad_group_id", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day", "alias": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c"}, "created_at": 1662526941.050648, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, ad_group_id, ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__ad_report"}, "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_campaign_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_campaign_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__campaign_report_campaign_id", "alias": "not_null_apple_search_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.0597692, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.apple_search_ads__campaign_report"}, "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__campaign_report_date_day", "alias": "not_null_apple_search_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.062638, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__campaign_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day.647e56213f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day.647e56213f", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5"}, "created_at": 1662526941.065566, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__campaign_report"}, "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_keyword_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_keyword_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__keyword_report_keyword_id", "alias": "not_null_apple_search_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.073525, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.apple_search_ads__keyword_report"}, "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__keyword_report_date_day", "alias": "not_null_apple_search_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.076885, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__keyword_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "campaign_id", "ad_group_id", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day", "alias": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246"}, "created_at": 1662526941.079762, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, ad_group_id, keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__keyword_report"}, "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_organization_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__organization_report_organization_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__organization_report_organization_id", "alias": "not_null_apple_search_ads__organization_report_organization_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_organization_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.088949, "compiled_sql": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "organization_id", "file_key_name": "models.apple_search_ads__organization_report"}, "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__organization_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__organization_report_date_day", "alias": "not_null_apple_search_ads__organization_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.092373, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__organization_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day.8bc84fccc3": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day.8bc84fccc3", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day", "alias": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d"}, "created_at": 1662526941.096158, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\n group by organization_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__organization_report"}, "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "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": ""}, "tags": [], "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.103679, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__search_term_report"}, "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term_text", "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_search_term_text"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_search_term_text.sql", "original_file_path": "models/apple_search_ads.yml", "name": "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": ""}, "tags": [], "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_search_term_text.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.10795, "compiled_sql": "\n \n \n\n\n\nselect search_term_text\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\nwhere search_term_text is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_term_text", "file_key_name": "models.apple_search_ads__search_term_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day.e60fe79ec4": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["search_term_text", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day.e60fe79ec4", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day", "alias": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690"}, "created_at": 1662526941.111041, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n search_term_text, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\n group by search_term_text, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__search_term_report"}, "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('ad_reporting__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__account_report_account_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__account_report_account_id.sql", "original_file_path": "models/ad_reporting.yml", "name": "not_null_ad_reporting__account_report_account_id", "alias": "not_null_ad_reporting__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/not_null_ad_reporting__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.19689, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.ad_reporting__account_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id.1cadcf1583": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id.1cadcf1583", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce.sql", "original_file_path": "models/ad_reporting.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id", "alias": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce"}, "created_at": 1662526941.2009962, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__account_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__account_report"}, "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('ad_reporting__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_group_report_ad_group_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__ad_group_report_ad_group_id.sql", "original_file_path": "models/ad_reporting.yml", "name": "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": ""}, "tags": [], "refs": [["ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/not_null_ad_reporting__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.2288818, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.ad_reporting__ad_group_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342.sql", "original_file_path": "models/ad_reporting.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342"}, "created_at": 1662526941.232788, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__ad_group_report"}, "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('ad_reporting__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_report_ad_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__ad_report_ad_id.sql", "original_file_path": "models/ad_reporting.yml", "name": "not_null_ad_reporting__ad_report_ad_id", "alias": "not_null_ad_reporting__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/not_null_ad_reporting__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.259742, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.ad_reporting__ad_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "ad_id", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21.sql", "original_file_path": "models/ad_reporting.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21"}, "created_at": 1662526941.263695, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, ad_id, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__ad_report"}, "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('ad_reporting__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__campaign_report_campaign_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__campaign_report_campaign_id.sql", "original_file_path": "models/ad_reporting.yml", "name": "not_null_ad_reporting__campaign_report_campaign_id", "alias": "not_null_ad_reporting__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/not_null_ad_reporting__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.274539, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.ad_reporting__campaign_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id.4b3426da0f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id.4b3426da0f", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f.sql", "original_file_path": "models/ad_reporting.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f"}, "created_at": 1662526941.2779038, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__campaign_report"}, "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_text", "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__keyword_report_keyword_text"], "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__keyword_report_keyword_text.sql", "original_file_path": "models/ad_reporting.yml", "name": "not_null_ad_reporting__keyword_report_keyword_text", "alias": "not_null_ad_reporting__keyword_report_keyword_text", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/not_null_ad_reporting__keyword_report_keyword_text.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.288917, "compiled_sql": "\n \n \n\n\n\nselect keyword_text\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__keyword_report`\nwhere keyword_text is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_text", "file_key_name": "models.ad_reporting__keyword_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "keyword_text", "keyword_match_type", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb.sql", "original_file_path": "models/ad_reporting.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb"}, "created_at": 1662526941.292823, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, keyword_text, keyword_match_type, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__keyword_report`\n group by platform, date_day, keyword_text, 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__keyword_report"}, "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('ad_reporting__search_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__search_report_search_query"], "unique_id": "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__search_report_search_query.sql", "original_file_path": "models/ad_reporting.yml", "name": "not_null_ad_reporting__search_report_search_query", "alias": "not_null_ad_reporting__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/not_null_ad_reporting__search_report_search_query.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.302092, "compiled_sql": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__search_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_query", "file_key_name": "models.ad_reporting__search_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371.sql", "original_file_path": "models/ad_reporting.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371"}, "created_at": 1662526941.305481, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, search_query, search_match_type, keyword_id, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__search_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__search_report"}, "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('ad_reporting__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__url_report_base_url"], "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__url_report_base_url.sql", "original_file_path": "models/ad_reporting.yml", "name": "not_null_ad_reporting__url_report_base_url", "alias": "not_null_ad_reporting__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/not_null_ad_reporting__url_report_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.317493, "compiled_sql": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "base_url", "file_key_name": "models.ad_reporting__url_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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.cd216b1424": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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.cd216b1424", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10.sql", "original_file_path": "models/ad_reporting.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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_996efa0d96cfeb69e01d6d9960ce6a10", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting.yml/dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10"}, "created_at": 1662526941.321224, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, ad_group_id, campaign_id, account_id, base_url, url_host, url_path, utm_campaign, utm_content, utm_medium, utm_source, utm_term\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__url_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_modified_at"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.439345, "compiled_sql": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "modified_at", "file_key_name": "models.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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_ad_group_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.442196, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.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_ad_group_id__modified_at.84af14c83b": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_ad_group_id__modified_at"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_ad_group_id__modified_at.84af14c83b", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_ad_group_id__modified_at", "alias": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f"}, "created_at": 1662526941.4448268, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.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": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_ad_group_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.450281, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_group_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.452472, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.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_ad_group_id__date_day.a0fcc4e33c": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_ad_group_id__date_day"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_ad_group_id__date_day.a0fcc4e33c", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d"}, "created_at": 1662526941.454769, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_group_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_modified_at"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.460906, "compiled_sql": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__ad_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_ad_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.4632719, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_apple_search_ads__ad_history"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at.38599b8cba": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at.38599b8cba", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at", "alias": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31"}, "created_at": 1662526941.4659998, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history`\n group by ad_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.472276, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__ad_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_group_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.4746208, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.4769568, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_apple_search_ads__ad_report"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id.0d8d23c516": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day", "ad_group_id"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id.0d8d23c516", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id", "alias": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9"}, "created_at": 1662526941.479448, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day, ad_group_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_modified_at"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.48473, "compiled_sql": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__campaign_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_campaign_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.4871612, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_apple_search_ads__campaign_history"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at.317f970af9": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at.317f970af9", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at", "alias": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9"}, "created_at": 1662526941.489828, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`\n group by campaign_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__campaign_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_campaign_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.495232, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_apple_search_ads__campaign_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.4975731, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__campaign_report"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day.bad41b0481": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day.bad41b0481", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07"}, "created_at": 1662526941.499885, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\n group by campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__campaign_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_modified_at"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.505125, "compiled_sql": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__keyword_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_keyword_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.507335, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_apple_search_ads__keyword_history"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at.7b06162d24": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at.7b06162d24", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at", "alias": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5"}, "created_at": 1662526941.5093389, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`\n group by keyword_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__keyword_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_keyword_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.5142999, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_apple_search_ads__keyword_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.516618, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__keyword_report"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day.9f0099cff8": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day.9f0099cff8", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day", "alias": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5"}, "created_at": 1662526941.519149, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\n group by keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__keyword_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__organization')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__organization_organization_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "not_null_stg_apple_search_ads__organization_organization_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "not_null_stg_apple_search_ads__organization_organization_id", "alias": "not_null_stg_apple_search_ads__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__organization_organization_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.524838, "compiled_sql": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "organization_id", "file_key_name": "models.stg_apple_search_ads__organization"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id.8647048f7a": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__organization')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id.8647048f7a", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id", "alias": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b"}, "created_at": 1662526941.528026, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n group by organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__organization"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report__fivetran_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.5337899, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_apple_search_ads__search_term_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.536315, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.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__fivetran_id__date_day.aad2a48344": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_fivetran_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report__fivetran_id__date_day"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report__fivetran_id__date_day.aad2a48344", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report__fivetran_id__date_day", "alias": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1"}, "created_at": 1662526941.5387058, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__search_term_report`\n group by _fivetran_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__search_term_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_history_ad_group_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.600611, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_pinterest_ads__ad_group_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced.1132e1f339": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced.1132e1f339", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7"}, "created_at": 1662526941.603179, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__ad_group_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_history_campaign_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "alias": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.609174, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_pinterest_ads__campaign_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced.eff7196b87": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced.eff7196b87", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b"}, "created_at": 1662526941.6120121, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n group by campaign_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__campaign_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"]}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id", "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f"}, "created_at": 1662526941.618946, "compiled_sql": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_history`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "pin_promotion_id", "file_key_name": "models.stg_pinterest_ads__pin_promotion_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id.8e9ab31ea9": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_fivetran_synced", "pin_promotion_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id.8e9ab31ea9", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id", "alias": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175"}, "created_at": 1662526941.62197, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_synced, pin_promotion_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_history`\n group by _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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__pin_promotion_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.6285172, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__pin_promotion_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id", "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b"}, "created_at": 1662526941.631402, "compiled_sql": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "pin_promotion_id", "file_key_name": "models.stg_pinterest_ads__pin_promotion_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id", "alias": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19"}, "created_at": 1662526941.634079, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__pin_promotion_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.641595, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__ad_group_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_ad_group_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.663573, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_pinterest_ads__ad_group_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id", "alias": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8"}, "created_at": 1662526941.667638, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__ad_group_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_history_advertiser_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "alias": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.675942, "compiled_sql": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.stg_pinterest_ads__advertiser_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id.94e8f4de4b": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["updated_at", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id.94e8f4de4b", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id", "alias": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733"}, "created_at": 1662526941.678338, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n updated_at, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n group by updated_at, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__advertiser_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__advertiser_report_date_day", "alias": "not_null_stg_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.684308, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__advertiser_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_advertiser_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "alias": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.68676, "compiled_sql": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.stg_pinterest_ads__advertiser_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id.e92ce8a9c0": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id.e92ce8a9c0", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id", "alias": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de"}, "created_at": 1662526941.689259, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`\n group by date_day, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__advertiser_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__campaign_report_date_day", "alias": "not_null_stg_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.695638, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__campaign_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_campaign_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "alias": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.716845, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_pinterest_ads__campaign_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id.ff47cb8abc": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id.ff47cb8abc", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id", "alias": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf"}, "created_at": 1662526941.741131, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__campaign_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_history_keyword_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "alias": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.76061, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_pinterest_ads__keyword_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced.d122faa877": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "ad_group_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced.d122faa877", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628"}, "created_at": 1662526941.7636511, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, ad_group_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__keyword_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__keyword_report_date_day", "alias": "not_null_stg_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.7822368, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__keyword_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_keyword_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "alias": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526941.802593, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_pinterest_ads__keyword_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_id", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id", "alias": "dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7"}, "created_at": 1662526941.82295, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, keyword_id, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`\n group by date_day, keyword_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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__keyword_report"}, "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__advertiser')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "unique_stg_tiktok_ads__advertiser_advertiser_id"], "unique_id": "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "unique_stg_tiktok_ads__advertiser_advertiser_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "unique_stg_tiktok_ads__advertiser_advertiser_id", "alias": "unique_stg_tiktok_ads__advertiser_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/unique_stg_tiktok_ads__advertiser_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.0884008, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n\n select advertiser_id as unique_field\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n where advertiser_id is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.stg_tiktok_ads__advertiser"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__advertiser')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__advertiser_advertiser_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "alias": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.0906801, "compiled_sql": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.stg_tiktok_ads__advertiser"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_history_ad_group_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.093413, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_tiktok_ads__ad_group_history"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at.cec78c01de": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at.cec78c01de", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at", "alias": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8"}, "created_at": 1662526942.095775, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_group_history"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_history_ad_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "not_null_stg_tiktok_ads__ad_history_ad_id", "alias": "not_null_stg_tiktok_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.102171, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_tiktok_ads__ad_history"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at.66b86b4dd1": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at.66b86b4dd1", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at", "alias": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f"}, "created_at": 1662526942.104618, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\n group by ad_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_history"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_history_campaign_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "alias": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.11069, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_tiktok_ads__campaign_history"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at.72bf07011b": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at.72bf07011b", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at", "alias": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000"}, "created_at": 1662526942.113048, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n group by campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__campaign_history"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_ad_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.118901, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_tiktok_ads__ad_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.1213582, "compiled_sql": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__ad_report_hourly"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour.e70f8cef6d": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour.e70f8cef6d", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour", "alias": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc"}, "created_at": 1662526942.124214, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.130301, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.1326442, "compiled_sql": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour.1aeaeb71ad": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_report_hourly')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour.1aeaeb71ad", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour", "alias": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60"}, "created_at": 1662526942.135052, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.141139, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.1436212, "compiled_sql": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour.8e4a1e4b34": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour.8e4a1e4b34", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour", "alias": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16"}, "created_at": 1662526942.1464791, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly"}, "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history_account_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__account_history_account_id", "alias": "not_null_stg_facebook_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.259407, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_facebook_ads__account_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history__fivetran_synced"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__account_history__fivetran_synced", "alias": "not_null_stg_facebook_ads__account_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.2623959, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_facebook_ads__account_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced.f9b4d28fa2": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced.f9b4d28fa2", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f"}, "created_at": 1662526942.265548, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history`\n group by account_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__account_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_ad_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__ad_history_ad_id", "alias": "not_null_stg_facebook_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.272825, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_facebook_ads__ad_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_updated_at"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__ad_history_updated_at", "alias": "not_null_stg_facebook_ads__ad_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_updated_at.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.275732, "compiled_sql": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__ad_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at.2922c18b58": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at.2922c18b58", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at", "alias": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137"}, "created_at": 1662526942.278532, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history`\n group by ad_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__ad_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_set_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_ad_set_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.285289, "compiled_sql": "\n \n \n\n\n\nselect ad_set_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history`\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_set_id", "file_key_name": "models.stg_facebook_ads__ad_set_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_updated_at"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.287922, "compiled_sql": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__ad_set_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at.0a60ad0fef": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_set_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at.0a60ad0fef", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at", "alias": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f"}, "created_at": 1662526942.290668, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_set_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__ad_set_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_campaign_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__campaign_history_campaign_id", "alias": "not_null_stg_facebook_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.297436, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_facebook_ads__campaign_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_updated_at"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__campaign_history_updated_at", "alias": "not_null_stg_facebook_ads__campaign_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_updated_at.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.2998168, "compiled_sql": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__campaign_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at.7437b392c2": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at.7437b392c2", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at", "alias": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78"}, "created_at": 1662526942.3022022, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history`\n group by campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__campaign_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history__fivetran_synced"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "alias": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.3084989, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_facebook_ads__creative_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history_creative_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__creative_history_creative_id", "alias": "not_null_stg_facebook_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.310962, "compiled_sql": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_facebook_ads__creative_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced.69ddc26562": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["creative_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced.69ddc26562", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217"}, "created_at": 1662526942.313778, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`\n group by creative_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__creative_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_ad_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__basic_ad_ad_id", "alias": "not_null_stg_facebook_ads__basic_ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.320077, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_facebook_ads__basic_ad"}, "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_account_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__basic_ad_account_id", "alias": "not_null_stg_facebook_ads__basic_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.3229618, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_facebook_ads__basic_ad"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id.bd909529e7": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_id", "account_id"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id.bd909529e7", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id", "alias": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683"}, "created_at": 1662526942.325546, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__basic_ad"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.468184, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_account_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_account_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history_ad_account_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.470835, "compiled_sql": "\n \n \n\n\n\nselect ad_account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_account_id", "file_key_name": "models.stg_snapchat_ads__ad_account_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced.cd4fd6b0be": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_account_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced.cd4fd6b0be", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d"}, "created_at": 1662526942.473053, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_account_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_account_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "alias": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.479792, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history_ad_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__ad_history_ad_id", "alias": "not_null_stg_snapchat_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.481832, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_snapchat_ads__ad_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced.f84924f13b": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced.f84924f13b", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060"}, "created_at": 1662526942.484304, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\n group by ad_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_ad_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.4902048, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_snapchat_ads__ad_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_date_hour"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.492942, "compiled_sql": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__ad_hourly_report"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour.1a4ef6182a": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour.1a4ef6182a", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour", "alias": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea"}, "created_at": 1662526942.495585, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\n group by ad_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.501954, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_squad_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.50434, "compiled_sql": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_squad_id", "file_key_name": "models.stg_snapchat_ads__ad_squad_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced.200b225a27": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_squad_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced.200b225a27", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128"}, "created_at": 1662526942.507433, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_squad_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.513064, "compiled_sql": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_squad_id", "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.515659, "compiled_sql": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour.774a407e69": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_squad_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour.774a407e69", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour", "alias": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3"}, "created_at": 1662526942.518058, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, date_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "alias": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.524423, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__campaign_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history_campaign_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "alias": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.526857, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_snapchat_ads__campaign_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced.31b9fb6777": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced.31b9fb6777", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b"}, "created_at": 1662526942.529773, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n group by campaign_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__campaign_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.535891, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.539029, "compiled_sql": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour.64293afa9c": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour.64293afa9c", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour", "alias": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2"}, "created_at": 1662526942.541721, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\n group by campaign_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "alias": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.548161, "compiled_sql": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__creative_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history_creative_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__creative_history_creative_id", "alias": "not_null_stg_snapchat_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.550848, "compiled_sql": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_snapchat_ads__creative_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced.c6f6c78b99": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["creative_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced.c6f6c78b99", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d"}, "created_at": 1662526942.553837, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history`\n group by creative_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__creative_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_url_tag_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.56003, "compiled_sql": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_snapchat_ads__creative_url_tag_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at.cc3fa6acbe": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["creative_id", "param_key", "updated_at"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_url_tag_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at.cc3fa6acbe", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at", "alias": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985"}, "created_at": 1662526942.562915, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, param_key, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__creative_url_tag_history"}, "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('microsoft_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__account_report_account_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__account_report_account_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__account_report_account_id", "alias": "not_null_microsoft_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.62748, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.microsoft_ads__account_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code", "alias": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668"}, "created_at": 1662526942.653872, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__account_report"}, "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('microsoft_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_group_report_ad_group_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["microsoft_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.662396, "compiled_sql": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.microsoft_ads__ad_group_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code", "alias": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6"}, "created_at": 1662526942.664887, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__ad_group_report"}, "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('microsoft_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_report_ad_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__ad_report_ad_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__ad_report_ad_id", "alias": "not_null_microsoft_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.673252, "compiled_sql": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.microsoft_ads__ad_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_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_77fd1448acda33bd9d2c0555648d2822", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822"}, "created_at": 1662526942.676042, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, ad_type, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__ad_report"}, "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('microsoft_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__campaign_report_campaign_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__campaign_report_campaign_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__campaign_report_campaign_id", "alias": "not_null_microsoft_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.685098, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.microsoft_ads__campaign_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code", "alias": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a"}, "created_at": 1662526942.687623, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__campaign_report"}, "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('microsoft_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__keyword_report_keyword_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__keyword_report_keyword_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__keyword_report_keyword_id", "alias": "not_null_microsoft_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.696255, "compiled_sql": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.microsoft_ads__keyword_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_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_44d9a6d860076a5eefdaf319891f3854", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854"}, "created_at": 1662526942.6987069, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__keyword_report"}, "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__search_report_search_query"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__search_report_search_query.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__search_report_search_query", "alias": "not_null_microsoft_ads__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__search_report_search_query.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.707735, "compiled_sql": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_query", "file_key_name": "models.microsoft_ads__search_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "search_query", "device_os", "device_type", "network"], "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network", "alias": "dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95"}, "created_at": 1662526942.7105029, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\n group by date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__search_report"}, "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('microsoft_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__url_report_base_url"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__url_report_base_url.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__url_report_base_url", "alias": "not_null_microsoft_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__url_report_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.7198029, "compiled_sql": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "base_url", "file_key_name": "models.microsoft_ads__url_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code", "alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432"}, "created_at": 1662526942.722388, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__url_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__account_history_account_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__account_history_account_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__account_history_account_id", "alias": "not_null_stg_twitter_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.855032, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_twitter_ads__account_history"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp.2725b1ff40": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp.2725b1ff40", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp", "alias": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0"}, "created_at": 1662526942.868293, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n group by account_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__account_history"}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_history_campaign_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__campaign_history_campaign_id", "alias": "not_null_stg_twitter_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.874796, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_twitter_ads__campaign_history"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp.c7054e5b55": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp.c7054e5b55", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp", "alias": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2"}, "created_at": 1662526942.8779871, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n group by campaign_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__campaign_history"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_history_line_item_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.8856242, "compiled_sql": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_history"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp.b12672e022": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["line_item_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp.b12672e022", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp", "alias": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3"}, "created_at": 1662526942.888461, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n line_item_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_history"}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"]}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id", "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976"}, "created_at": 1662526942.895207, "compiled_sql": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "promoted_tweet_id", "file_key_name": "models.stg_twitter_ads__promoted_tweet_history"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp.dddc4a21ef": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["promoted_tweet_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp.dddc4a21ef", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp", "alias": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca"}, "created_at": 1662526942.89778, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n promoted_tweet_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__promoted_tweet_history"}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_date_day"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.903984, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id", "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa"}, "created_at": 1662526942.9065878, "compiled_sql": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "promoted_tweet_id", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_placement"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "alias": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.9098392, "compiled_sql": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement.7028206273": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "promoted_tweet_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement.7028206273", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement", "alias": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9"}, "created_at": 1662526942.9128902, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, promoted_tweet_id, placement\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__promoted_tweet_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_index"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_index.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__tweet_url_index", "alias": "not_null_stg_twitter_ads__tweet_url_index", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_index.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.9201448, "compiled_sql": "\n \n \n\n\n\nselect index\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "index", "file_key_name": "models.stg_twitter_ads__tweet_url"}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_tweet_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__tweet_url_tweet_id", "alias": "not_null_stg_twitter_ads__tweet_url_tweet_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.922675, "compiled_sql": "\n \n \n\n\n\nselect tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet_url"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id.eab5b85d74": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["index", "tweet_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id.eab5b85d74", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id", "alias": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540"}, "created_at": 1662526942.925693, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, tweet_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`\n group by index, tweet_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__tweet_url"}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_date_day"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__campaign_report_date_day", "alias": "not_null_stg_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.931971, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__campaign_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_campaign_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__campaign_report_campaign_id", "alias": "not_null_stg_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.934699, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_twitter_ads__campaign_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_placement"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__campaign_report_placement", "alias": "not_null_stg_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.937247, "compiled_sql": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__campaign_report"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement.71102d8fdb": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement.71102d8fdb", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement", "alias": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0"}, "created_at": 1662526942.9396942, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, placement\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__campaign_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_date_day"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.946218, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__line_item_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_line_item_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.94887, "compiled_sql": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_placement"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_report_placement", "alias": "not_null_stg_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.95189, "compiled_sql": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__line_item_report"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement.251e077e6b": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "line_item_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement.251e077e6b", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement", "alias": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb"}, "created_at": 1662526942.9544902, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, line_item_id, placement\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_date_day"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526942.979614, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_line_item_id.e4f3fa2e5c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": "not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_line_item_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_line_item_id.e4f3fa2e5c", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_keywords_report_line_item_id", "alias": "not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c"}, "created_at": 1662526942.983197, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword.02bb211fa0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_keyword"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword.02bb211fa0", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_keyword.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_keywords_report_keyword", "alias": "not_null_stg_twitter_ads__line_item_keywords_report_keyword", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.0048609, "column_name": "keyword", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_placement.f5bb738cac": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_placement"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_placement.f5bb738cac", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_keywords_report_placement", "alias": "not_null_stg_twitter_ads__line_item_keywords_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.02416, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement.c47c820cc3": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "line_item_id", "keyword", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement.c47c820cc3", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement", "alias": "dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089"}, "created_at": 1662526943.027385, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_tweet_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__tweet_tweet_id", "alias": "not_null_stg_twitter_ads__tweet_tweet_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.037614, "compiled_sql": "\n \n \n\n\n\nselect tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet"}, "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "unique_stg_twitter_ads__tweet_tweet_id"], "unique_id": "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "unique_stg_twitter_ads__tweet_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "unique_stg_twitter_ads__tweet_tweet_id", "alias": "unique_stg_twitter_ads__tweet_tweet_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/unique_stg_twitter_ads__tweet_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.041267, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n\n select tweet_id as unique_field\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`\n where tweet_id is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet"}, "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_account_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__account_report_account_id.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__account_report_account_id", "alias": "not_null_linkedin_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.10748, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.linkedin_ads__account_report"}, "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__account_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__account_report_date_day", "alias": "not_null_linkedin_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.1110091, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__account_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id.a2dcede91c": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id.a2dcede91c", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id", "alias": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231"}, "created_at": 1662526943.114092, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\n group by date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__account_report"}, "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__campaign_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__campaign_report_date_day", "alias": "not_null_linkedin_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.121557, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__campaign_report"}, "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_campaign_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__campaign_report_campaign_id.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__campaign_report_campaign_id", "alias": "not_null_linkedin_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.1250792, "compiled_sql": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.linkedin_ads__campaign_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id", "account_id", "campaign_group_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id", "alias": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873"}, "created_at": 1662526943.128864, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, account_id, campaign_group_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__campaign_report"}, "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__campaign_group_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__campaign_group_report_date_day", "alias": "not_null_linkedin_ads__campaign_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.138079, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__campaign_group_report"}, "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_group_id", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_campaign_group_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "original_file_path": "models/linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.141372, "compiled_sql": "\n \n \n\n\n\nselect campaign_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_group_id", "file_key_name": "models.linkedin_ads__campaign_group_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id.f60989a7a6": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id.f60989a7a6", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id", "alias": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e"}, "created_at": 1662526943.1448681, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__campaign_group_report"}, "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__creative_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__creative_report_date_day", "alias": "not_null_linkedin_ads__creative_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.1697228, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__creative_report"}, "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_creative_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__creative_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__creative_report_creative_id", "alias": "not_null_linkedin_ads__creative_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.172888, "compiled_sql": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.linkedin_ads__creative_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "creative_id", "campaign_id", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id", "alias": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92"}, "created_at": 1662526943.176657, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, creative_id, campaign_id, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__creative_report"}, "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__url_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__url_report_date_day", "alias": "not_null_linkedin_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.185753, "compiled_sql": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__url_report"}, "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_creative_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__url_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__url_report_creative_id", "alias": "not_null_linkedin_ads__url_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1662526943.188949, "compiled_sql": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.linkedin_ads__url_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "creative_id", "campaign_id", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id", "alias": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f"}, "created_at": 1662526943.19235, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, creative_id, campaign_id, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__url_report"}}, "sources": {"source.microsoft_ads_source.microsoft_ads.account_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "account_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_history_data`", "created_at": 1662526943.200659}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "account_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "account_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_account_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_performance_daily_report_data`", "created_at": 1662526943.20096}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "ad_group_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The date in which an ad group starts running.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The date in which this ad group will no longer run.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_history_data`", "created_at": 1662526943.201188}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "ad_group_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_group_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_performance_daily_report_data`", "created_at": 1662526943.201429}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "ad_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "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, "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The full URL that the ad links to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_history_data`", "created_at": 1662526943.201646}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "ad_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_performance_daily_report_data`", "created_at": 1662526943.201893}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "campaign_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_history_data`", "created_at": 1662526943.202112}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "campaign_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_campaign_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_performance_daily_report_data`", "created_at": 1662526943.202352}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "keyword_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_keyword_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_history_data`", "created_at": 1662526943.20257}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "keyword_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_keyword_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_performance_daily_report_data`", "created_at": 1662526943.202819}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "search_query_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "search_query_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_search_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_search_performance_daily_report_data`", "created_at": 1662526943.203064}, "source.linkedin_source.linkedin.ad_analytics_by_creative": {"fqn": ["linkedin_source", "linkedin", "ad_analytics_by_creative"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_creative", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "ad_analytics_by_creative", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_analytics_by_creative_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "day": {"name": "day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cost_in_usd": {"name": "cost_in_usd", "description": "The cost of the ads in the USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_creative_data`", "created_at": 1662526943.2032902}, "source.linkedin_source.linkedin.creative_history": {"fqn": ["linkedin_source", "linkedin", "creative_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.creative_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "creative_history", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_creative_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign the creative belongs to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text with Sponsored Link to landing page on your site.\nSPONSORED_STATUS_UPDATE - Sponsored status update from a profile page.\nSPONSORED_INMAILS - Single message ad delivered to the member's inbox\nSPONSORED_MESSAGE - Conversation ad containing a tree of pre-determined messages delivered to the member's inbox\nSPONSORED_VIDEO - Sponsored videos.\nSPONSORED_UPDATE_CAROUSEL - Sponsored Carousels\nFOLLOW_COMPANY_V2 - Dynamic Follow Ad\nSPOTLIGHT_V2 - Dynamic Spotlight Ad\nJOBS_V2 - Dynamic Job Ad\n", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "call_to_action_label_type": {"name": "call_to_action_label_type", "description": "The labeled call-to-action on this ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_creative_history_data`", "created_at": 1662526943.203522}, "source.linkedin_source.linkedin.campaign_history": {"fqn": ["linkedin_source", "linkedin", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.campaign_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "campaign_history", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign belongs to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_history_data`", "created_at": 1662526943.203798}, "source.linkedin_source.linkedin.campaign_group_history": {"fqn": ["linkedin_source", "linkedin", "campaign_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.campaign_group_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "campaign_group_history", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_campaign_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign group belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_group_history_data`", "created_at": 1662526943.205051}, "source.linkedin_source.linkedin.account_history": {"fqn": ["linkedin_source", "linkedin", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.account_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "account_history", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_account_history_data`", "created_at": 1662526943.2053351}, "source.linkedin_source.linkedin.ad_analytics_by_campaign": {"fqn": ["linkedin_source", "linkedin", "ad_analytics_by_campaign"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_campaign", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "ad_analytics_by_campaign", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_analytics_by_campaign_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "day": {"name": "day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cost_in_usd": {"name": "cost_in_usd", "description": "The cost of the ads in the USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_campaign_data`", "created_at": 1662526943.205565}, "source.google_ads_source.google_ads.ad_stats": {"fqn": ["google_ads_source", "google_ads", "ad_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group": {"name": "ad_group", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_stats_data`", "created_at": 1662526943.205795}, "source.google_ads_source.google_ads.ad_history": {"fqn": ["google_ads_source", "google_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The display url of the ad that is being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the ad in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "final_urls": {"name": "final_urls", "description": "A list of urls that are used for the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_history_data`", "created_at": 1662526943.206014}, "source.google_ads_source.google_ads.ad_group_history": {"fqn": ["google_ads_source", "google_ads", "ad_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_group_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_group_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the ad group in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_history_data`", "created_at": 1662526943.2062259}, "source.google_ads_source.google_ads.campaign_history": {"fqn": ["google_ads_source", "google_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.campaign_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "campaign_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "Status of the ads and how they are currently being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "General status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_history_data`", "created_at": 1662526943.206456}, "source.google_ads_source.google_ads.account_history": {"fqn": ["google_ads_source", "google_ads", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.account_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "account_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency of the spend reported.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone of the account ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "descriptive_name": {"name": "descriptive_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_history_data`", "created_at": 1662526943.206667}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"fqn": ["google_ads_source", "google_ads", "ad_group_criterion_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_group_criterion_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_criterion_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_campaign_id": {"name": "base_campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of ad group criterion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group criterion.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_criterion_history_data`", "created_at": 1662526943.206881}, "source.google_ads_source.google_ads.ad_group_stats": {"fqn": ["google_ads_source", "google_ads", "ad_group_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_group_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_group_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_stats_data`", "created_at": 1662526943.207096}, "source.google_ads_source.google_ads.campaign_stats": {"fqn": ["google_ads_source", "google_ads", "campaign_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.campaign_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "campaign_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_campaign_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_stats_data`", "created_at": 1662526943.207304}, "source.google_ads_source.google_ads.keyword_stats": {"fqn": ["google_ads_source", "google_ads", "keyword_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.keyword_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "keyword_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_keyword_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique ID of the keyword record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_keyword_stats_data`", "created_at": 1662526943.207521}, "source.google_ads_source.google_ads.account_stats": {"fqn": ["google_ads_source", "google_ads", "account_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.account_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "account_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_account_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_stats_data`", "created_at": 1662526943.207731}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "ad_group_history", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The designated ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad group name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_history_data`", "created_at": 1662526943.207954}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "ad_group_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_group_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_report_data`", "created_at": 1662526943.208173}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "ad_history", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "modification_time": {"name": "modification_time", "description": "Timestamp of when the ad object was last modified.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "org_id": {"name": "org_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad name associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_history_data`", "created_at": 1662526943.2083871}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_level_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "ad_level_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_report_data`", "created_at": 1662526943.208607}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "campaign_history", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Campaign name for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the campaign, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_history_data`", "created_at": 1662526943.208816}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "campaign_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_campaign_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_report_data`", "created_at": 1662526943.209024}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "keyword_history", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_keyword_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the keyword, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "text": {"name": "text", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_history_data`", "created_at": 1662526943.209238}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "keyword_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_keyword_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_report_data`", "created_at": 1662526943.209533}, "source.apple_search_ads_source.apple_search_ads.organization": {"fqn": ["apple_search_ads_source", "apple_search_ads", "organization"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.organization", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "organization", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_organization_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Specified currency for respective organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_model": {"name": "payment_model", "description": "Values include 'LOC', 'PAYG' or (payment method hasn't been set).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "Organization default timezone; values can be ORTZ or UTC.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_organization_data`", "created_at": 1662526943.2097542}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "search_term_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "search_term_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_search_term_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "The word or phrase to match of user searches.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": "True and True"}, "patch_path": null, "unrendered_config": {"enabled": "True and True"}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_search_term_report_data`", "created_at": 1662526943.209985}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "pin_promotion_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_pin_promotion_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_report_data`", "created_at": 1662526943.210198}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "pin_promotion_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_pin_promotion_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Pin creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_id": {"name": "pin_id", "description": "Original pin ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_history_data`", "created_at": 1662526943.210405}, "source.pinterest_source.pinterest_ads.campaign_history": {"fqn": ["pinterest_source", "pinterest_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.campaign_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "campaign_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Campaign creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Campaign name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Campaign. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_history_data`", "created_at": 1662526943.2106009}, "source.pinterest_source.pinterest_ads.ad_group_history": {"fqn": ["pinterest_source", "pinterest_ads", "ad_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "ad_group_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_ad_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Ad group creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad group name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Ad group. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_history_data`", "created_at": 1662526943.210811}, "source.pinterest_source.pinterest_ads.ad_group_report": {"fqn": ["pinterest_source", "pinterest_ads", "ad_group_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "ad_group_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_ad_group_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_report_data`", "created_at": 1662526943.2110238}, "source.pinterest_source.pinterest_ads.advertiser_history": {"fqn": ["pinterest_source", "pinterest_ads", "advertiser_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "advertiser_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_advertiser_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_profile_status": {"name": "billing_profile_status", "description": "Status of the billing profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_type": {"name": "billing_type", "description": "The billing type of the advertiser. Will typically be CREDIT_CARD or INVOICE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency code which the a", "meta": {}, "data_type": null, "quote": null, "tags": []}, "merchant_id": {"name": "merchant_id", "description": "Unique ID of the merchant associated with the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_user_id": {"name": "owner_user_id", "description": "Unique identifier of the owner user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "Timestamp of when a record was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_history_data`", "created_at": 1662526943.2112372}, "source.pinterest_source.pinterest_ads.advertiser_report": {"fqn": ["pinterest_source", "pinterest_ads", "advertiser_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "advertiser_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_advertiser_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_report_data`", "created_at": 1662526943.211443}, "source.pinterest_source.pinterest_ads.campaign_report": {"fqn": ["pinterest_source", "pinterest_ads", "campaign_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.campaign_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "campaign_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_campaign_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_report_data`", "created_at": 1662526943.211652}, "source.pinterest_source.pinterest_ads.keyword_history": {"fqn": ["pinterest_source", "pinterest_ads", "keyword_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.keyword_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "keyword_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_keyword_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "value": {"name": "value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique identifier of the record within the Fivetran synced table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "archived": {"name": "archived", "description": "Boolean indicating if the keyword is archived.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid amount set for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_history_data`", "created_at": 1662526943.21186}, "source.pinterest_source.pinterest_ads.keyword_report": {"fqn": ["pinterest_source", "pinterest_ads", "keyword_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.keyword_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "keyword_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_keyword_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_report_data`", "created_at": 1662526943.2120802}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"fqn": ["tiktok_ads_source", "tiktok_ads", "advertiser"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "advertiser", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_advertiser_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "address": {"name": "address", "description": "Advertiser address information", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Account available balance", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company": {"name": "company", "description": "Advertiser's company name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contacter": {"name": "contacter", "description": "Contact Person", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The advertiser's country", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Advertiser's create time", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Type of currency used by advertisers", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Brand description, i.e. promotional content", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Advertiser contact email, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Advertiser industry category", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "Language used by advertisers", "meta": {}, "data_type": null, "quote": null, "tags": []}, "license_no": {"name": "license_no", "description": "License number", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Advertiser name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Contact mobile number, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "promotion_area": {"name": "promotion_area", "description": "Operation area", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reason": {"name": "reason", "description": "Reason for rejection", "meta": {}, "data_type": null, "quote": null, "tags": []}, "role": {"name": "role", "description": "Advertiser role", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Advertiser status", "meta": {}, "data_type": null, "quote": null, "tags": []}, "telephone": {"name": "telephone", "description": "Fixed phone number, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Ad account time zone including GMT offset", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_advertiser_data`", "created_at": 1662526943.212325}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "campaign_history", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Campaign budget", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_mode": {"name": "budget_mode", "description": "Budget type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Time at which the campaign was created.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Advertising objective.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Campaign status", "meta": {}, "data_type": null, "quote": null, "tags": []}, "split_test_variable": {"name": "split_test_variable", "description": "Split Test variables. Optional values; TARGETING, BIDDING_OPTIMIZATION , CREATIVE.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_history_data`", "created_at": 1662526943.212599}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "adgroup_history", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_adgroup_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The Ad group's campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "adgroup_name": {"name": "adgroup_name", "description": "Ad group name. Character limit is 512 and cannot contain emoji.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "android_osv": {"name": "android_osv", "description": "Minimum Android version.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_download_url": {"name": "app_download_url", "description": "App download link", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The Application id of the promoted app", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "App name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_type": {"name": "app_type", "description": "App type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience": {"name": "audience", "description": "A list of audience IDs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid": {"name": "bid", "description": "CPC, CPM bidding, oCPM learning bidding", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "Bidding Strategy", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_event": {"name": "billing_event", "description": "Bid method.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "carriers": {"name": "carriers", "description": "Carriers that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "connection_type": {"name": "connection_type", "description": "Device connection types that you want to target. Default; unlimited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "conversion_bid": {"name": "conversion_bid", "description": "oCPM conversion bid", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "creative_material_mode": {"name": "creative_material_mode", "description": "Creative delivery mode.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "deep_bid_type": {"name": "deep_bid_type", "description": "Bidding strategy for in-app events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deep_cpabid": {"name": "deep_cpabid", "description": "Deep bid", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deep_external_action": {"name": "deep_external_action", "description": "Deep conversion event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Display name of ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "enable_inventory_filter": {"name": "enable_inventory_filter", "description": "Inventory filtering (Unsafe videos will not be displayed).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "excluded_audience": {"name": "excluded_audience", "description": "A list of audience ID to be excluded.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ios_osv": {"name": "ios_osv", "description": "Minimum iOS version.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keywords": {"name": "keywords", "description": "Keywords used.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "IDs of the locations that you want to target.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "open_url_type": {"name": "open_url_type", "description": "The open URL type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "operation_system": {"name": "operation_system", "description": "Device operating systems that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimize_goal": {"name": "optimize_goal", "description": "Optimization goal.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "package": {"name": "package", "description": "Package name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pangle_block_app_list_id": {"name": "pangle_block_app_list_id", "description": "Pangle app block list ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pixel_id": {"name": "pixel_id", "description": "Pixel ID. Only application for landing pages.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "placement": {"name": "placement", "description": "The apps where you want to deliver your ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "placement_type": {"name": "placement_type", "description": "Placement type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_image": {"name": "profile_image", "description": "Avatar URL.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "skip_learning_phase": {"name": "skip_learning_phase", "description": "Whether to skip the learning stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "statistic_type": {"name": "statistic_type", "description": "conversion bid statistic type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Ad group status", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_actions": {"name": "video_actions", "description": "Number of video actions.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_history_data`", "created_at": 1662526943.212961}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "ad_history", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adgroup_id": {"name": "adgroup_id", "description": "Ad group ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad Name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_text": {"name": "ad_text", "description": "The ad text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "The display name of app download ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_to_action": {"name": "call_to_action", "description": "Call to action values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Time at which the ad was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The display name of landing page or pure exposure ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "image_ids": {"name": "image_ids", "description": "A list of image IDs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_aco": {"name": "is_aco", "description": "Whether the ad is an automated ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "playable_url": {"name": "playable_url", "description": "Playable material url.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_image": {"name": "profile_image", "description": "Avatar URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Ad status.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_id": {"name": "video_id", "description": "The video ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_history_data`", "created_at": 1662526943.213207}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "ad_report_hourly"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "ad_report_hourly", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_ad_report_hourly_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_report_hourly_data`", "created_at": 1662526943.213485}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_report_hourly"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "campaign_report_hourly", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_campaign_report_hourly_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_report_hourly_data`", "created_at": 1662526943.2137659}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_report_hourly"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "adgroup_report_hourly", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_adgroup_report_hourly_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_report_hourly_data`", "created_at": 1662526943.214092}, "source.facebook_ads_source.facebook_ads.account_history": {"fqn": ["facebook_ads_source", "facebook_ads", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.account_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "account_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The time account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_account_history_data`", "created_at": 1662526943.214313}, "source.facebook_ads_source.facebook_ads.ad_history": {"fqn": ["facebook_ads_source", "facebook_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.ad_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "ad_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "ID of the ad set that contains the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_history_data`", "created_at": 1662526943.2145228}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"fqn": ["facebook_ads_source", "facebook_ads", "ad_set_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "ad_set_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_ad_set_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_set_history_data`", "created_at": 1662526943.214805}, "source.facebook_ads_source.facebook_ads.basic_ad": {"fqn": ["facebook_ads_source", "facebook_ads", "basic_ad"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "basic_ad", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_basic_ad_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad the report relates to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adset_name": {"name": "adset_name", "description": "Name of the ad set the report relates to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_basic_ad_data`", "created_at": 1662526943.215102}, "source.facebook_ads_source.facebook_ads.campaign_history": {"fqn": ["facebook_ads_source", "facebook_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "campaign_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this campaign belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The time the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stop_time": {"name": "stop_time", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_campaign_history_data`", "created_at": 1662526943.215352}, "source.facebook_ads_source.facebook_ads.creative_history": {"fqn": ["facebook_ads_source", "facebook_ads", "creative_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.creative_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "creative_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_creative_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "page_link": {"name": "page_link", "description": "URL destination of Facebook ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "template_page_link": {"name": "template_page_link", "description": "URL destination of Facebook dynamic ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique ID for an ad creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Ad account ID for the account this ad creative belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of this ad creative as seen in the ad account's library.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_creative_history_data`", "created_at": 1662526943.215745}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_account_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser": {"name": "advertiser", "description": "Name of advertiser", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency used by account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Account timezone", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_account_history_data`", "created_at": 1662526943.215988}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the related ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_history_data`", "created_at": 1662526943.216217}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_hourly_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_hourly_report", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_hourly_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_hourly_report_data`", "created_at": 1662526943.216461}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_squad_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_squad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_history_data`", "created_at": 1662526943.2167501}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_hourly_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_squad_hourly_report", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_squad_hourly_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_hourly_report_data`", "created_at": 1662526943.2170298}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "campaign_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_history_data`", "created_at": 1662526943.217257}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_hourly_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "campaign_hourly_report", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_campaign_hourly_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_hourly_report_data`", "created_at": 1662526943.217559}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "creative_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "creative_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_creative_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the creative in Snapchat.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_history_data`", "created_at": 1662526943.2177742}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "creative_url_tag_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "creative_url_tag_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_creative_url_tag_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "key": {"name": "key", "description": "The URL parameter key, i.e. UTM_SOURCE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The URL parameter value, i.e. Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_url_tag_history_data`", "created_at": 1662526943.217983}, "source.twitter_ads_source.twitter_ads.account_history": {"fqn": ["twitter_ads_source", "twitter_ads", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.account_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "account_history", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_switch_at": {"name": "timezone_switch_at", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salt": {"name": "salt", "description": "The random encryption key used to has data.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_account_history_data`", "created_at": 1662526943.218217}, "source.twitter_ads_source.twitter_ads.campaign_history": {"fqn": ["twitter_ads_source", "twitter_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "campaign_history", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currently all metrics for the account are set to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The time the campaign will end", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "servable": {"name": "servable", "description": "Whether the campaign is in a state to be actively served to users.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "standard_delivery": {"name": "standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_history_data`", "created_at": 1662526943.218466}, "source.twitter_ads_source.twitter_ads.line_item_history": {"fqn": ["twitter_ads_source", "twitter_ads", "line_item_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "line_item_history", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_history_data`", "created_at": 1662526943.2187269}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "promoted_tweet_history", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_promoted_tweet_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_history_data`", "created_at": 1662526943.218945}, "source.twitter_ads_source.twitter_ads.tweet_url": {"fqn": ["twitter_ads_source", "twitter_ads", "tweet_url"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "tweet_url", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_tweet_url_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "The 't.co' shortened URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_url_data`", "created_at": 1662526943.219163}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "promoted_tweet_report", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_promoted_tweet_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the related promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the promoted tweet on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_report_data`", "created_at": 1662526943.2193768}, "source.twitter_ads_source.twitter_ads.tweet": {"fqn": ["twitter_ads_source", "twitter_ads", "tweet"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.tweet", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "tweet", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_tweet_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "If provided, the non-public title of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "Full text of the tweet's content.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lang": {"name": "lang", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_data`", "created_at": 1662526943.219579}, "source.twitter_ads_source.twitter_ads.campaign_report": {"fqn": ["twitter_ads_source", "twitter_ads", "campaign_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "campaign_report", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_campaign_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the ad campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the campaign on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_report_data`", "created_at": 1662526943.219792}, "source.twitter_ads_source.twitter_ads.line_item_report": {"fqn": ["twitter_ads_source", "twitter_ads", "line_item_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "line_item_report", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_report_data`", "created_at": 1662526943.220004}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"unique_id": "macro.dbt_bigquery.date_sharded_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.55637}, "macro.dbt_bigquery.grant_access_to": {"unique_id": "macro.dbt_bigquery.grant_access_to", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.55683}, "macro.dbt_bigquery.get_partitions_metadata": {"unique_id": "macro.dbt_bigquery.get_partitions_metadata", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5574138}, "macro.dbt_bigquery.bigquery__get_catalog": {"unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- else -%}\n\n {%- set query -%}\n with tables as (\n select\n project_id as table_database,\n dataset_id as table_schema,\n table_id as original_table_name,\n\n concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n row_count,\n size_bytes as size_bytes,\n case\n when type = 1 then 'table'\n when type = 2 then 'view'\n else 'external'\n end as table_type,\n\n REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n where (\n {%- for schema in schemas -%}\n upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n\n extracted as (\n\n select *,\n case\n when is_date_shard then shard_base_name\n else original_table_name\n end as table_name\n\n from tables\n\n ),\n\n unsharded_tables as (\n\n select\n table_database,\n table_schema,\n table_name,\n coalesce(table_type, 'external') as table_type,\n is_date_shard,\n\n struct(\n min(shard_name) as shard_min,\n max(shard_name) as shard_max,\n count(*) as shard_count\n ) as table_shards,\n\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count,\n\n max(relation_id) as relation_id\n\n from extracted\n group by 1,2,3,4,5\n\n ),\n\n info_schema_columns as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n table_catalog as table_database,\n table_schema,\n table_name,\n\n -- use the \"real\" column name from the paths query below\n column_name as base_column_name,\n ordinal_position as column_index,\n\n is_partitioning_column,\n clustering_ordinal_position\n\n from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n where ordinal_position is not null\n\n ),\n\n info_schema_column_paths as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n field_path as column_name,\n data_type as column_type,\n column_name as base_column_name,\n description as column_comment\n\n from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n ),\n\n columns as (\n\n select * except (base_column_name)\n from info_schema_columns\n join info_schema_column_paths using (relation_id, base_column_name)\n\n ),\n\n column_stats as (\n\n select\n table_database,\n table_schema,\n table_name,\n max(relation_id) as relation_id,\n max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n array_to_string(\n array_agg(\n case\n when clustering_ordinal_position is not null then column_name\n else null\n end ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n\n from columns\n group by 1,2,3\n\n )\n\n select\n unsharded_tables.table_database,\n unsharded_tables.table_schema,\n case\n when is_date_shard then concat(unsharded_tables.table_name, '*')\n else unsharded_tables.table_name\n end as table_name,\n unsharded_tables.table_type,\n\n -- coalesce name and type for External tables - these columns are not\n -- present in the COLUMN_FIELD_PATHS resultset\n coalesce(columns.column_name, '') as column_name,\n -- invent a row number to account for nested fields -- BQ does\n -- not treat these nested properties as independent fields\n row_number() over (\n partition by relation_id\n order by columns.column_index, columns.column_name\n ) as column_index,\n coalesce(columns.column_type, '') as column_type,\n columns.column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_shards.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_shards.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_shards.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n is_clustered as `stats__clustering_fields__include`\n\n -- join using relation_id (an actual relation, not a shard prefix) to make\n -- sure that column metadata is picked up through the join. This will only\n -- return the column information for the \"max\" table in a date-sharded table set\n from unsharded_tables\n left join columns using (relation_id)\n left join column_stats using (relation_id)\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.563552}, "macro.dbt_bigquery.partition_by": {"unique_id": "macro.dbt_bigquery.partition_by", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.572434}, "macro.dbt_bigquery.cluster_by": {"unique_id": "macro.dbt_bigquery.cluster_by", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.573154}, "macro.dbt_bigquery.bigquery_options": {"unique_id": "macro.dbt_bigquery.bigquery_options", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_options", "macro_sql": "{% macro bigquery_options(opts) %}\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.573895}, "macro.dbt_bigquery.bigquery_table_options": {"unique_id": "macro.dbt_bigquery.bigquery_table_options", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.574446}, "macro.dbt_bigquery.bigquery__create_table_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, sql) -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n as (\n {{ sql }}\n );\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.575683}, "macro.dbt_bigquery.bigquery_view_options": {"unique_id": "macro.dbt_bigquery.bigquery_view_options", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_view_options", "macro_sql": "{% macro bigquery_view_options(config, node) %}\n {% set opts = adapter.get_view_options(config, node) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.576154}, "macro.dbt_bigquery.bigquery__create_view_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_view_as", "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {{ bigquery_view_options(config, model) }}\n as {{ sql }};\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_view_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.576778}, "macro.dbt_bigquery.bigquery__create_schema": {"unique_id": "macro.dbt_bigquery.bigquery__create_schema", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_schema", "macro_sql": "{% macro bigquery__create_schema(relation) -%}\n {{ adapter.create_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.577043}, "macro.dbt_bigquery.bigquery__drop_schema": {"unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5773041}, "macro.dbt_bigquery.bigquery__drop_relation": {"unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% call statement('drop_relation') -%}\n drop {{ relation.type }} if exists {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.577696}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.577997}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5782862}, "macro.dbt_bigquery.bigquery__current_timestamp": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n CURRENT_TIMESTAMP()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5784461}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5788002}, "macro.dbt_bigquery.bigquery__list_schemas": {"unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.57919}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5797372}, "macro.dbt_bigquery.bigquery__persist_docs": {"unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.580555}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.580916}, "macro.dbt_bigquery.bigquery__rename_relation": {"unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5812328}, "macro.dbt_bigquery.bigquery__alter_relation_add_columns": {"unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_relation_add_columns", "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.582078}, "macro.dbt_bigquery.bigquery__alter_relation_drop_columns": {"unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_relation_drop_columns", "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in drop_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.582837}, "macro.dbt_bigquery.bigquery__alter_column_type": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#-- Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_relation", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.58431}, "macro.dbt_bigquery.bigquery__test_unique": {"unique_id": "macro.dbt_bigquery.bigquery__test_unique", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__test_unique", "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n\n select {{ column_name }} as unique_field\n from {{ model }}\n where {{ column_name }} is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.584885}, "macro.dbt_bigquery.bigquery__upload_file": {"unique_id": "macro.dbt_bigquery.bigquery__upload_file", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__upload_file", "macro_sql": "{% macro bigquery__upload_file(local_file_path, database, table_schema, table_name) %}\n\n {{ log(\"kwargs: \" ~ kwargs) }}\n\n {% do adapter.upload_file(local_file_path, database, table_schema, table_name, kwargs=kwargs) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.585523}, "macro.dbt_bigquery.bigquery__create_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5862331}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.586554}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.587734}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.5889049}, "macro.dbt_bigquery.materialization_view_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {% set to_return = create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_or_replace_view", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.59021}, "macro.dbt_bigquery.materialization_table_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery' -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n We only need to drop this thing if it is not a table.\n If it _is_ already a table, then we can overwrite it without downtime\n Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n {% call statement('main') -%}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall -%}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.594246}, "macro.dbt_bigquery.materialization_copy_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "name": "materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {% set destination = this.incorporate(type='table') %}\n\n {# there can be several ref() or source() according to BQ copy API docs #}\n {# cycle over ref() and source() to create source tables array #}\n {% set source_array = [] %}\n {% for ref_table in model.refs %}\n {{ source_array.append(ref(*ref_table)) }}\n {% endfor %}\n\n {% for src_table in model.sources %}\n {{ source_array.append(source(*src_table)) }}\n {% endfor %}\n\n {# Call adapter copy_table function #}\n {%- set result_str = adapter.copy_table(\n source_array,\n destination,\n config.get('copy_materialization', default = 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {%- do apply_grants(target_relation, grant_config) -%}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.596632}, "macro.dbt_bigquery.declare_dbt_max_partition": {"unique_id": "macro.dbt_bigquery.declare_dbt_max_partition", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "declare_dbt_max_partition", "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, sql) %}\n\n {% if '_dbt_max_partition' in sql %}\n\n declare _dbt_max_partition {{ partition_by.data_type }} default (\n select max({{ partition_by.field }}) from {{ this }}\n where {{ partition_by.field }} is not null\n );\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.599823}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\", default=\"merge\") -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.600706}, "macro.dbt_bigquery.bq_insert_overwrite": {"unique_id": "macro.dbt_bigquery.bq_insert_overwrite", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_insert_overwrite", "macro_sql": "{% macro bq_insert_overwrite(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n) %}\n\n {% if partitions is not none and partitions != [] %} {# static #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n {% else %} {# dynamic #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_by.data_type }}>;\n\n {# have we already created the temp table to check for schema changes? #}\n {% if not tmp_relation_exists %}\n {{ declare_dbt_max_partition(this, partition_by, sql) }}\n\n -- 1. create a temp table\n {{ create_table_as(True, tmp_relation, sql) }}\n {% else %}\n -- 1. temp table already exists, we used it to check for schema changes\n {% endif %}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n array_agg(distinct {{ partition_by.render() }})\n from {{ tmp_relation }}\n );\n\n {#\n TODO: include_sql_header is a hack; consider a better approach that includes\n the sql_header at the materialization-level instead\n #}\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=false) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql", "macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.603141}, "macro.dbt_bigquery.bq_generate_incremental_build_sql": {"unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_generate_incremental_build_sql", "macro_sql": "{% macro bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n) %}\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% if partition_by is none %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n ) %}\n\n {% else %} {# strategy == 'merge' #}\n {%- set source_sql -%}\n {%- if tmp_relation_exists -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n (\n {{sql}}\n )\n {%- endif -%}\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n {% endif %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bq_insert_overwrite", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.604827}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery' -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n\n {% else %}\n {% set tmp_relation_exists = false %}\n {% if on_schema_change != 'ignore' %} {# Check first, since otherwise we may not build a temp table #}\n {% do run_query(\n declare_dbt_max_partition(this, partition_by, sql) + create_table_as(True, tmp_relation, sql)\n ) %}\n {% set tmp_relation_exists = true %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% endif %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {% set build_sql = bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n ) %}\n\n {% endif %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.create_table_as", "macro.dbt.run_query", "macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.process_schema_changes", "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.610909}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6118011}, "macro.dbt_bigquery.bigquery__create_columns": {"unique_id": "macro.dbt_bigquery.bigquery__create_columns", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6121202}, "macro.dbt_bigquery.bigquery__post_snapshot": {"unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6123898}, "macro.dbt_bigquery.bigquery__except": {"unique_id": "macro.dbt_bigquery.bigquery__except", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.612757}, "macro.dbt_bigquery.bigquery__dateadd": {"unique_id": "macro.dbt_bigquery.bigquery__dateadd", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.613339}, "macro.dbt_bigquery.bigquery__intersect": {"unique_id": "macro.dbt_bigquery.bigquery__intersect", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.613697}, "macro.dbt_bigquery.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_bigquery.bigquery__escape_single_quotes", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.614214}, "macro.dbt_bigquery.bigquery__right": {"unique_id": "macro.dbt_bigquery.bigquery__right", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.614816}, "macro.dbt_bigquery.bigquery__listagg": {"unique_id": "macro.dbt_bigquery.bigquery__listagg", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6157079}, "macro.dbt_bigquery.bigquery__datediff": {"unique_id": "macro.dbt_bigquery.bigquery__datediff", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n {% if dbt_version[0] == 1 and dbt_version[2] >= 2 %}\n {{ return(dbt.datediff(first_date, second_date, datepart)) }}\n {% else %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.616788}, "macro.dbt_bigquery.bigquery__safe_cast": {"unique_id": "macro.dbt_bigquery.bigquery__safe_cast", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.617285}, "macro.dbt_bigquery.bigquery__hash": {"unique_id": "macro.dbt_bigquery.bigquery__hash", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6177669}, "macro.dbt_bigquery.bigquery__position": {"unique_id": "macro.dbt_bigquery.bigquery__position", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6182778}, "macro.dbt_bigquery.bigquery__bool_or": {"unique_id": "macro.dbt_bigquery.bigquery__bool_or", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n\n logical_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.61871}, "macro.dbt_bigquery.bigquery__split_part": {"unique_id": "macro.dbt_bigquery.bigquery__split_part", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.61997}, "macro.dbt_bigquery.bigquery__date_trunc": {"unique_id": "macro.dbt_bigquery.bigquery__date_trunc", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.620478}, "macro.dbt_bigquery.bigquery__get_show_grant_sql": {"unique_id": "macro.dbt_bigquery.bigquery__get_show_grant_sql", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "bigquery__get_show_grant_sql", "macro_sql": "{% macro bigquery__get_show_grant_sql(relation) %}\n {% set location = adapter.get_dataset_location(relation) %}\n {% set relation = relation.incorporate(location=location) %}\n\n select privilege_type, grantee\n from {{ relation.information_schema(\"OBJECT_PRIVILEGES\") }}\n where object_schema = \"{{ relation.dataset }}\"\n and object_name = \"{{ relation.identifier }}\"\n -- filter out current user\n and split(grantee, ':')[offset(1)] != session_user()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.621772}, "macro.dbt_bigquery.bigquery__get_grant_sql": {"unique_id": "macro.dbt_bigquery.bigquery__get_grant_sql", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "bigquery__get_grant_sql", "macro_sql": "\n\n\n{%- macro bigquery__get_grant_sql(relation, privilege, grantee) -%}\n grant `{{ privilege }}` on {{ relation.type }} {{ relation }} to {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6223629}, "macro.dbt_bigquery.bigquery__get_revoke_sql": {"unique_id": "macro.dbt_bigquery.bigquery__get_revoke_sql", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "bigquery__get_revoke_sql", "macro_sql": "{%- macro bigquery__get_revoke_sql(relation, privilege, grantee) -%}\n revoke `{{ privilege }}` on {{ relation.type }} {{ relation }} from {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.622848}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6249769}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.625368}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.62566}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.625956}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.626247}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6270442}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6276531}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.628267}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.629164}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6297002}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6355689}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.635913}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6363578}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6366441}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6368499}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.638355}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.638688}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.639034}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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_sql']) -%}\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 select {{ check_cols_config | join(', ') }} from ({{ node['compiled_sql'] }}) 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6417432}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.644317}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.650058}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.650629}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6509671}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6511538}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6514518}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.651695}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.652104}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.653787}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.654531}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.655061}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.655978}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "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_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 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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.666676}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "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 {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6705458}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6714828}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.672102}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.672964}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6737332}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.675298}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.676393}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.677603}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.685455}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.688381}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.68912}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\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 );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.690596}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.691126}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.692378}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.6937}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "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 {% set build_sql = get_delete_insert_merge_sql(target_relation, temp_relation, unique_key, dest_columns) %}\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 %}", "resource_type": "macro", "tags": [], "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.get_delete_insert_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.70155}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.708452}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.710732}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7129579}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 {% 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.714575}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "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 {{ adapter.rename_relation(existing_relation, backup_relation) }}\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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.720505}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.721573}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7219992}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7225258}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.723318}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "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 {{ adapter.rename_relation(existing_relation, backup_relation) }}\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 -%}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.7286289}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7293062}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.729722}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "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=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.733174}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.733956}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7344372}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7347882}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7352839}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "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 comparision 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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.740928}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7481961}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.749867}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.750301}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.751342}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7517078}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.751967}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.752237}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7524638}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.75277}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7529972}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.753888}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.754327}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.756682}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.757484}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.757916}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.758898}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.759392}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.759996}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.760808}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.761288}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7620149}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7627032}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.763336}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.764617}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\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 {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.766655}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.767751}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.768321}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.771148}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 Partiton 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.773529}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.775054}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.775525}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7761621}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.776313}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.777031}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7773461}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.777938}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7781792}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.77878}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.779029}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7797608}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.780097}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7806752}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7808251}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7814898}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7817652}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7824361}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.782721}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7838678}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7849832}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7857769}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.786089}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.786751}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.787016}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7876139}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.787916}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.788502}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.788805}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7894}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7896}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.790256}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.790515}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7910988}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.791313}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.793133}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7934248}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7937338}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.794027}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.794424}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.794712}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.795014}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.795388}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.795694}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7959838}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.796285}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.796559}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.797163}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.797368}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.798103}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.7986}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.798882}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.799853}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8001752}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.800609}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8012521}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8015099}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.802294}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.802658}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8029702}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.803427}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.804321}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.804585}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8048892}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.805643}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.810442}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.810766}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.811188}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.81173}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.812201}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8128011}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.81315}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8137228}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.81407}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8143868}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.814773}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.815705}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8166132}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.817991}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.818526}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8188522}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.819278}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.82031}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8206139}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8212411}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "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').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.822133}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8250089}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.825268}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8256052}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.82586}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.826509}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.82687}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.827071}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8274949}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.827859}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.828289}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8286579}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8290958}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.830453}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.83081}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.831276}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.831706}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526932.8338099}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.83504}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8353631}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.835788}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.836104}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.836608}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.837503}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.839803}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.840297}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8406541}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.840959}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.841307}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.841779}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.842164}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8428469}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8433018}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8437052}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.846272}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8466718}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.847261}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.847606}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.848274}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8491678}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8503559}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.850837}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8523462}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.853546}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.854552}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.855669}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.856617}, "macro.microsoft_ads_source.get_ad_group_history_columns": {"unique_id": "macro.microsoft_ads_source.get_ad_group_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8589802}, "macro.microsoft_ads_source.get_campaign_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_campaign_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_campaign_daily_report_columns.sql", "original_file_path": "macros/get_campaign_daily_report_columns.sql", "name": "get_campaign_daily_report_columns", "macro_sql": "{% macro get_campaign_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.862103}, "macro.microsoft_ads_source.get_ad_group_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_ad_group_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_ad_group_daily_report_columns.sql", "original_file_path": "macros/get_ad_group_daily_report_columns.sql", "name": "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_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.865768}, "macro.microsoft_ads_source.get_account_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_account_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_account_daily_report_columns.sql", "original_file_path": "macros/get_account_daily_report_columns.sql", "name": "get_account_daily_report_columns", "macro_sql": "{% macro get_account_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8688068}, "macro.microsoft_ads_source.get_campaign_history_columns": {"unique_id": "macro.microsoft_ads_source.get_campaign_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.87075}, "macro.microsoft_ads_source.get_account_history_columns": {"unique_id": "macro.microsoft_ads_source.get_account_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"time_zone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.872127}, "macro.microsoft_ads_source.get_ad_history_columns": {"unique_id": "macro.microsoft_ads_source.get_ad_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"title_part_1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"final_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.874055}, "macro.microsoft_ads_source.get_ad_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_ad_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_ad_daily_report_columns.sql", "original_file_path": "macros/get_ad_daily_report_columns.sql", "name": "get_ad_daily_report_columns", "macro_sql": "{% macro get_ad_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8779368}, "macro.microsoft_ads_source.get_keyword_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_keyword_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_keyword_daily_report_columns.sql", "original_file_path": "macros/get_keyword_daily_report_columns.sql", "name": "get_keyword_daily_report_columns", "macro_sql": "{% macro get_keyword_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.881703}, "macro.microsoft_ads_source.get_keyword_history_columns": {"unique_id": "macro.microsoft_ads_source.get_keyword_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "name": "get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.883242}, "macro.microsoft_ads_source.get_search_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_search_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_search_daily_report_columns.sql", "original_file_path": "macros/get_search_daily_report_columns.sql", "name": "get_search_daily_report_columns", "macro_sql": "{% macro get_search_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"search_query\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.886821}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8874261}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8876648}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.88781}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.888541}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.88886}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.889984}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.89023}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8914502}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8916008}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8917499}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.892443}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.89277}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.893279}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.893536}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() %}\n timestamp without time zone\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.893687}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.893887}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8945742}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.894733}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.894881}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.895191}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.895339}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.895481}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.895825}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.895972}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.896116}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8964212}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.896568}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8967118}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.8977149}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "cast_array_to_string", "macro_sql": "{% macro cast_array_to_string(array) %}\n {{ adapter.dispatch('cast_array_to_string', 'dbt_utils') (array) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__cast_array_to_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.898562}, "macro.dbt_utils.default__cast_array_to_string": {"unique_id": "macro.dbt_utils.default__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "default__cast_array_to_string", "macro_sql": "{% macro default__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.898849}, "macro.dbt_utils.postgres__cast_array_to_string": {"unique_id": "macro.dbt_utils.postgres__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "postgres__cast_array_to_string", "macro_sql": "{% macro postgres__cast_array_to_string(array) %}\n {%- set array_as_string -%}cast({{ array }} as {{ dbt_utils.type_string() }}){%- endset -%}\n {{ dbt_utils.replace(dbt_utils.replace(array_as_string,\"'}'\",\"']'\"),\"'{'\",\"'['\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.899555}, "macro.dbt_utils.redshift__cast_array_to_string": {"unique_id": "macro.dbt_utils.redshift__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "redshift__cast_array_to_string", "macro_sql": "{% macro redshift__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.899842}, "macro.dbt_utils.bigquery__cast_array_to_string": {"unique_id": "macro.dbt_utils.bigquery__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "bigquery__cast_array_to_string", "macro_sql": "{% macro bigquery__cast_array_to_string(array) %}\n '['||(select string_agg(cast(element as string), ',') from unnest({{ array }}) element)||']'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.900055}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.900743}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.90096}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9011688}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9022348}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.902565}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.902892}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.90321}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "redshift__dateadd", "macro_sql": "{% macro redshift__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ return(dbt_utils.default__dateadd(datepart, interval, from_date_or_timestamp)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.903701}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9043121}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.90447}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9046211}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.905365}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.90565}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9059331}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9062111}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.907249}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.907528}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.907846}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.908161}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.91194}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.912732}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.913284}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.914308}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "redshift__listagg", "macro_sql": "{% macro redshift__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n {% set ns = namespace() %}\n {% set ns.delimiter_text_regex = delimiter_text|trim(\"'\") %}\n {% set special_chars %}\\,^,$,.,|,?,*,+,(,),[,],{,}{% endset %} \n {%- for char in special_chars.split(',') -%}\n {% set escape_char %}\\\\{{ char }}{% endset %}\n {% set ns.delimiter_text_regex = ns.delimiter_text_regex|replace(char,escape_char) %}\n {%- endfor -%}\n\n {% set regex %}'([^{{ ns.delimiter_text_regex }}]+{{ ns.delimiter_text_regex }}){1,{{ limit_num - 1}}}[^{{ ns.delimiter_text_regex }}]+'{% endset %}\n regexp_substr(\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,{{ regex }}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9161332}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9201221}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.920474}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9208431}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "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 ({{ dbt_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.924149}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "redshift__datediff", "macro_sql": "{% macro redshift__datediff(first_date, second_date, datepart) -%}\n\n {{ return(dbt_utils.default__datediff(first_date, second_date, datepart)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.924692}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.92591}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.926193}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9264529}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.926826}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.927521}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9278028}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.928062}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9287622}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.929048}, "macro.dbt_utils.redshift__cast_bool_to_text": {"unique_id": "macro.dbt_utils.redshift__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "redshift__cast_bool_to_text", "macro_sql": "{% macro redshift__cast_bool_to_text(field) %}\n case\n when {{ field }} is true then 'true'\n when {{ field }} is false then 'false'\n end::text\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.929301}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__identifier"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9303}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.930624}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.930832}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.931514}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n \n any_value({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.931728}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n {#- /*Postgres doesn't support any_value, so we're using min() to get the same result*/ -#}\n min({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.931947}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.932739}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.933017}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9332879}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9339032}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9341152}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.935175}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.935413}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9355671}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9357162}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.936033}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.936268}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.936567}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.936799}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9370592}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.939313}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.940327}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__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 exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.941225}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.941605}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt_utils')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.942419}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9426901}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.942954}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "redshift__array_concat", "macro_sql": "{% macro redshift__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.943219}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9439611}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n \n bool_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9441762}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n \n boolor_agg({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.944389}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n \n logical_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.944596}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.945666}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.946187}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.946485}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "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_utils.dateadd('day', '-1',\n dbt_utils.dateadd('month', '3', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.947259}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "redshift__last_day", "macro_sql": "{% macro redshift__last_day(date, datepart) %}\n\n {{ return(dbt_utils.default__last_day(date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.947614}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.950206}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.95054}, "macro.dbt_utils._split_part_negative": {"unique_id": "macro.dbt_utils._split_part_negative", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9509819}, "macro.dbt_utils.postgres__split_part": {"unique_id": "macro.dbt_utils.postgres__split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.951636}, "macro.dbt_utils.redshift__split_part": {"unique_id": "macro.dbt_utils.redshift__split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "redshift__split_part", "macro_sql": "{% macro redshift__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.952389}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.953092}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.95385}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.954114}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9543831}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs = [], data_type = api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt_utils')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.955418}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9558961}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.956182}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "redshift__array_construct", "macro_sql": "{% macro redshift__array_construct(inputs, data_type) -%}\n array( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.956463}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n [ {{ inputs|join(' , ') }} ]\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.956744}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.958379}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt_utils')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__array_append"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.959185}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.959458}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9599402}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "redshift__array_append", "macro_sql": "{% macro redshift__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.960308}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.968989}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.970004}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9706721}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.971753}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.981447}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.982259}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.983169}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.984123}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.985376}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.986112}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "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_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9867342}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.987749}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9881868}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9890182}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = '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\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.989596}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9908092}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9914749}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9923358}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.992979}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.993709}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9940538}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.995328}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.996348}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.997407}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.998118}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.998985}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526932.9993038}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0000079}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0003421}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0015721}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.002759}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.003762}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "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_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.004406}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\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 {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.005342}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.005895}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.006738}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model) %}\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\nwith validation as (\n select\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),\nvalidation_errors as (\n select\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.007692}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.008859}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\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_utils.type_timestamp() }})= cast({{ dbt_utils.dateadd(datepart, interval, previous_column_name) }} as {{ dbt_utils.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.010192}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0110579}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0113761}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.012622}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\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-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.014296}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.019595}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "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 }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_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 nore 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.023662}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.024392}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.024721}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.025441}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.025974}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0266318}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.027254}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "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\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.028814}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0300212}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.031179}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0316129}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 \"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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0322719}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.033188}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.033984}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.035197}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.037726}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.039298}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0401511}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.040545}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.041645}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.043128}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0447302}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0455968}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0461318}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.047422}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\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 cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526933.049435}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.052164}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\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_utils.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.056166}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.060255}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "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\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 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 {%- 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 cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.066368}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0670478}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.06752}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.071605}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.07202}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.072403}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.072774}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.073096}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.073459}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0746582}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.076556}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.077358}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.077895}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.078614}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0792398}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0816379}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 \"table_schema\",\n table_name as \"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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.082152}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0838149}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.084818}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0875762}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.09076}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.092692}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.094249}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.095316}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.096652}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.097478}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.0985851}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.099471}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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 \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.099641}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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 \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.099802}, "macro.dbt_utils.bigquery__get_table_types_sql": {"unique_id": "macro.dbt_utils.bigquery__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "bigquery__get_table_types_sql", "macro_sql": "{% macro bigquery__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 `table_type`\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.099963}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.101656}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1021829}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.104513}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.106615}, "macro.linkedin_source.get_creative_history_columns": {"unique_id": "macro.linkedin_source.get_creative_history_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "name": "get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"call_to_action_label_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"click_uri\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1090019}, "macro.linkedin_source.get_campaign_group_history_columns": {"unique_id": "macro.linkedin_source.get_campaign_group_history_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_campaign_group_history_columns.sql", "original_file_path": "macros/get_campaign_group_history_columns.sql", "name": "get_campaign_group_history_columns", "macro_sql": "{% macro get_campaign_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"backfilled\", \"datatype\": \"boolean\"},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1112661}, "macro.linkedin_source.get_ad_analytics_by_campaign_columns": {"unique_id": "macro.linkedin_source.get_ad_analytics_by_campaign_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_ad_analytics_by_campaign_columns.sql", "original_file_path": "macros/get_ad_analytics_by_campaign_columns.sql", "name": "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_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"day\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.113303}, "macro.linkedin_source.get_campaign_history_columns": {"unique_id": "macro.linkedin_source.get_campaign_history_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"audience_expansion_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"campaign_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creative_selection\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"daily_budget_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"daily_budget_currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"format\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"locale_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"locale_language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"objective_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"offsite_delivery_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"optimization_target_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.118556}, "macro.linkedin_source.get_ad_analytics_by_creative_columns": {"unique_id": "macro.linkedin_source.get_ad_analytics_by_creative_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_ad_analytics_by_creative_columns.sql", "original_file_path": "macros/get_ad_analytics_by_creative_columns.sql", "name": "get_ad_analytics_by_creative_columns", "macro_sql": "{% macro get_ad_analytics_by_creative_columns() %}\n\n{% set columns = [\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"creative_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"day\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__creative_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.120359}, "macro.linkedin_source.get_account_history_columns": {"unique_id": "macro.linkedin_source.get_account_history_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.122234}, "macro.spark_utils.get_tables": {"unique_id": "macro.spark_utils.get_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1306188}, "macro.spark_utils.get_delta_tables": {"unique_id": "macro.spark_utils.get_delta_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.131935}, "macro.spark_utils.get_statistic_columns": {"unique_id": "macro.spark_utils.get_statistic_columns", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.133597}, "macro.spark_utils.spark_optimize_delta_tables": {"unique_id": "macro.spark_utils.spark_optimize_delta_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.135065}, "macro.spark_utils.spark_vacuum_delta_tables": {"unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.136417}, "macro.spark_utils.spark_analyze_tables": {"unique_id": "macro.spark_utils.spark_analyze_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1662526933.13809}, "macro.spark_utils.spark__concat": {"unique_id": "macro.spark_utils.spark__concat", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "name": "spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.138583}, "macro.spark_utils.spark__type_numeric": {"unique_id": "macro.spark_utils.spark__type_numeric", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "name": "spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1389399}, "macro.spark_utils.spark__dateadd": {"unique_id": "macro.spark_utils.spark__dateadd", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.14371}, "macro.spark_utils.spark__datediff": {"unique_id": "macro.spark_utils.spark__datediff", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.155924}, "macro.spark_utils.spark__current_timestamp": {"unique_id": "macro.spark_utils.spark__current_timestamp", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "name": "spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.156331}, "macro.spark_utils.spark__current_timestamp_in_utc": {"unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "name": "spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.156479}, "macro.spark_utils.spark__split_part": {"unique_id": "macro.spark_utils.spark__split_part", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.157601}, "macro.spark_utils.spark__get_relations_by_pattern": {"unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.160546}, "macro.spark_utils.spark__get_relations_by_prefix": {"unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1611688}, "macro.spark_utils.spark__get_tables_by_pattern": {"unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.161679}, "macro.spark_utils.spark__get_tables_by_prefix": {"unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.162187}, "macro.spark_utils.assert_not_null": {"unique_id": "macro.spark_utils.assert_not_null", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "name": "assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1628969}, "macro.spark_utils.default__assert_not_null": {"unique_id": "macro.spark_utils.default__assert_not_null", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.163318}, "macro.spark_utils.spark__convert_timezone": {"unique_id": "macro.spark_utils.spark__convert_timezone", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.163868}, "macro.facebook_ads.get_url_tags_query": {"unique_id": "macro.facebook_ads.get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "get_url_tags_query", "macro_sql": "{% macro get_url_tags_query() %}\n {{ return(adapter.dispatch('get_url_tags_query') ()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.facebook_ads.bigquery__get_url_tags_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.165642}, "macro.facebook_ads.bigquery__get_url_tags_query": {"unique_id": "macro.facebook_ads.bigquery__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "bigquery__get_url_tags_query", "macro_sql": "{% macro bigquery__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\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 _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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.165854}, "macro.facebook_ads.postgres__get_url_tags_query": {"unique_id": "macro.facebook_ads.postgres__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "postgres__get_url_tags_query", "macro_sql": "{% macro postgres__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\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 _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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.166087}, "macro.facebook_ads.redshift__get_url_tags_query": {"unique_id": "macro.facebook_ads.redshift__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "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 _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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.166431}, "macro.facebook_ads.snowflake__get_url_tags_query": {"unique_id": "macro.facebook_ads.snowflake__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "snowflake__get_url_tags_query", "macro_sql": "{% macro snowflake__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.166652}, "macro.facebook_ads.spark__get_url_tags_query": {"unique_id": "macro.facebook_ads.spark__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "spark__get_url_tags_query", "macro_sql": "{% macro spark__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.166833}, "macro.dbt_date.get_date_dimension": {"unique_id": "macro.dbt_date.get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.17969}, "macro.dbt_date.default__get_date_dimension": {"unique_id": "macro.dbt_date.default__get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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_utils.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt_utils.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_utils.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_utils.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ dbt_utils.last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt_utils.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ dbt_utils.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_utils.type_int() }}) as quarter_of_year,\n cast({{ dbt_utils.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ dbt_utils.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_utils.type_int() }}) as year_number,\n cast({{ dbt_utils.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt_utils.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_utils.type_int", "macro.dbt_date.month_name", "macro.dbt_utils.date_trunc", "macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.184132}, "macro.dbt_date.postgres__get_date_dimension": {"unique_id": "macro.dbt_date.postgres__get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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_utils.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt_utils.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_utils.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_utils.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ dbt_utils.last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt_utils.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ dbt_utils.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_utils.type_int() }}) as quarter_of_year,\n cast({{ dbt_utils.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# dbt_utils.last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt_utils.dateadd('day', '-1', dbt_utils.dateadd('month', '3', dbt_utils.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_utils.type_int() }}) as year_number,\n cast({{ dbt_utils.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt_utils.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_utils.type_int", "macro.dbt_date.month_name", "macro.dbt_utils.date_trunc", "macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1886091}, "macro.dbt_date.get_base_dates": {"unique_id": "macro.dbt_date.get_base_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.190312}, "macro.dbt_date.default__get_base_dates": {"unique_id": "macro.dbt_date.default__get_base_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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_utils.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt_utils.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt_utils.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_utils.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_utils.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1916978}, "macro.dbt_date.bigquery__get_base_dates": {"unique_id": "macro.dbt_date.bigquery__get_base_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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 date )\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as date )\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt_utils.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_utils.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_utils.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_utils.date_spine", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.192965}, "macro.dbt_date.get_fiscal_year_dates": {"unique_id": "macro.dbt_date.get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_fiscal_year_dates"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.195457}, "macro.dbt_date.default__get_fiscal_year_dates": {"unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "name": "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 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 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_utils.dateadd('day', 6, 'd.date_day') }} as date) as week_end_date\n from\n 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_utils.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_utils.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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.196503}, "macro.dbt_date.get_fiscal_periods": {"unique_id": "macro.dbt_date.get_fiscal_periods", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "name": "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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1980171}, "macro.dbt_date.tomorrow": {"unique_id": "macro.dbt_date.tomorrow", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "name": "tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.198565}, "macro.dbt_date.next_week": {"unique_id": "macro.dbt_date.next_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "name": "next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.1990469}, "macro.dbt_date.next_month_name": {"unique_id": "macro.dbt_date.next_month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "name": "next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(1, tz), short=short) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.199657}, "macro.dbt_date.next_month": {"unique_id": "macro.dbt_date.next_month", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "name": "next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.200254}, "macro.dbt_date.day_name": {"unique_id": "macro.dbt_date.day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__day_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2015119}, "macro.dbt_date.default__day_name": {"unique_id": "macro.dbt_date.default__day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.201897}, "macro.dbt_date.snowflake__day_name": {"unique_id": "macro.dbt_date.snowflake__day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.202283}, "macro.dbt_date.bigquery__day_name": {"unique_id": "macro.dbt_date.bigquery__day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2026649}, "macro.dbt_date.postgres__day_name": {"unique_id": "macro.dbt_date.postgres__day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.203062}, "macro.dbt_date.to_unixtimestamp": {"unique_id": "macro.dbt_date.to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2039108}, "macro.dbt_date.default__to_unixtimestamp": {"unique_id": "macro.dbt_date.default__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.204205}, "macro.dbt_date.snowflake__to_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2044768}, "macro.dbt_date.bigquery__to_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.204684}, "macro.dbt_date.n_days_away": {"unique_id": "macro.dbt_date.n_days_away", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.205512}, "macro.dbt_date.week_start": {"unique_id": "macro.dbt_date.week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.206492}, "macro.dbt_date.default__week_start": {"unique_id": "macro.dbt_date.default__week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt_utils.date_trunc('week', date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.206777}, "macro.dbt_date.snowflake__week_start": {"unique_id": "macro.dbt_date.snowflake__week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "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_utils.dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2073228}, "macro.dbt_date.postgres__week_start": {"unique_id": "macro.dbt_date.postgres__week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dbt_utils.dateadd('day', -1, dbt_utils.date_trunc('week', dbt_utils.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2078102}, "macro.dbt_date.iso_week_start": {"unique_id": "macro.dbt_date.iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.20886}, "macro.dbt_date._iso_week_start": {"unique_id": "macro.dbt_date._iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "_iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt_utils.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2091599}, "macro.dbt_date.default__iso_week_start": {"unique_id": "macro.dbt_date.default__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.209429}, "macro.dbt_date.snowflake__iso_week_start": {"unique_id": "macro.dbt_date.snowflake__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.209693}, "macro.dbt_date.postgres__iso_week_start": {"unique_id": "macro.dbt_date.postgres__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2100391}, "macro.dbt_date.n_days_ago": {"unique_id": "macro.dbt_date.n_days_ago", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "name": "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_utils.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.211002}, "macro.dbt_date.last_week": {"unique_id": "macro.dbt_date.last_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "name": "last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.211572}, "macro.dbt_date.now": {"unique_id": "macro.dbt_date.now", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "name": "now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt_utils.current_timestamp(), tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2121}, "macro.dbt_date.periods_since": {"unique_id": "macro.dbt_date.periods_since", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "name": "periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ dbt_utils.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.212726}, "macro.dbt_date.today": {"unique_id": "macro.dbt_date.today", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "name": "today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.213208}, "macro.dbt_date.last_month": {"unique_id": "macro.dbt_date.last_month", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "name": "last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2140532}, "macro.dbt_date.day_of_year": {"unique_id": "macro.dbt_date.day_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.215209}, "macro.dbt_date.default__day_of_year": {"unique_id": "macro.dbt_date.default__day_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2155478}, "macro.dbt_date.postgres__day_of_year": {"unique_id": "macro.dbt_date.postgres__day_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.215883}, "macro.dbt_date.redshift__day_of_year": {"unique_id": "macro.dbt_date.redshift__day_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ dbt_utils.type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.216277}, "macro.dbt_date.from_unixtimestamp": {"unique_id": "macro.dbt_date.from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.218826}, "macro.dbt_date.default__from_unixtimestamp": {"unique_id": "macro.dbt_date.default__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2193348}, "macro.dbt_date.postgres__from_unixtimestamp": {"unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.219828}, "macro.dbt_date.snowflake__from_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.220886}, "macro.dbt_date.bigquery__from_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.221621}, "macro.dbt_date.n_months_ago": {"unique_id": "macro.dbt_date.n_months_ago", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "name": "n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt_utils.date_trunc('month', \n dbt_utils.dateadd('month', -1 * n, \n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.222559}, "macro.dbt_date.date_part": {"unique_id": "macro.dbt_date.date_part", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2233841}, "macro.dbt_date.default__date_part": {"unique_id": "macro.dbt_date.default__date_part", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.223655}, "macro.dbt_date.bigquery__date_part": {"unique_id": "macro.dbt_date.bigquery__date_part", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2239559}, "macro.dbt_date.n_weeks_away": {"unique_id": "macro.dbt_date.n_weeks_away", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "name": "n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt_utils.date_trunc('week', \n dbt_utils.dateadd('week', n, \n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.224891}, "macro.dbt_date.day_of_month": {"unique_id": "macro.dbt_date.day_of_month", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "name": "day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.225603}, "macro.dbt_date.redshift__day_of_month": {"unique_id": "macro.dbt_date.redshift__day_of_month", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "name": "redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ dbt_utils.type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.226132}, "macro.dbt_date.yesterday": {"unique_id": "macro.dbt_date.yesterday", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "name": "yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.226707}, "macro.dbt_date.day_of_week": {"unique_id": "macro.dbt_date.day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.229375}, "macro.dbt_date.default__day_of_week": {"unique_id": "macro.dbt_date.default__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2299368}, "macro.dbt_date.snowflake__day_of_week": {"unique_id": "macro.dbt_date.snowflake__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.230697}, "macro.dbt_date.bigquery__day_of_week": {"unique_id": "macro.dbt_date.bigquery__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.231363}, "macro.dbt_date.postgres__day_of_week": {"unique_id": "macro.dbt_date.postgres__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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_utils.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_utils.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2321532}, "macro.dbt_date.redshift__day_of_week": {"unique_id": "macro.dbt_date.redshift__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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_utils.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt_utils.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2329862}, "macro.dbt_date.iso_week_end": {"unique_id": "macro.dbt_date.iso_week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.23404}, "macro.dbt_date._iso_week_end": {"unique_id": "macro.dbt_date._iso_week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.iso_week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2344809}, "macro.dbt_date.default__iso_week_end": {"unique_id": "macro.dbt_date.default__iso_week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.234748}, "macro.dbt_date.snowflake__iso_week_end": {"unique_id": "macro.dbt_date.snowflake__iso_week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.235022}, "macro.dbt_date.n_weeks_ago": {"unique_id": "macro.dbt_date.n_weeks_ago", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "name": "n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt_utils.date_trunc('week', \n dbt_utils.dateadd('week', -1 * n, \n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.236028}, "macro.dbt_date.month_name": {"unique_id": "macro.dbt_date.month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__month_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.236947}, "macro.dbt_date.default__month_name": {"unique_id": "macro.dbt_date.default__month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.237329}, "macro.dbt_date.bigquery__month_name": {"unique_id": "macro.dbt_date.bigquery__month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.237708}, "macro.dbt_date.snowflake__month_name": {"unique_id": "macro.dbt_date.snowflake__month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.238086}, "macro.dbt_date.postgres__month_name": {"unique_id": "macro.dbt_date.postgres__month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.238473}, "macro.dbt_date.last_month_name": {"unique_id": "macro.dbt_date.last_month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "name": "last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(1, tz), short=short) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2390919}, "macro.dbt_date.week_of_year": {"unique_id": "macro.dbt_date.week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.239969}, "macro.dbt_date.default__week_of_year": {"unique_id": "macro.dbt_date.default__week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ dbt_utils.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.240326}, "macro.dbt_date.postgres__week_of_year": {"unique_id": "macro.dbt_date.postgres__week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "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_utils.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2406101}, "macro.dbt_date.convert_timezone": {"unique_id": "macro.dbt_date.convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2425642}, "macro.dbt_date.default__convert_timezone": {"unique_id": "macro.dbt_date.default__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\n{%- if not source_tz -%}\ncast(convert_timezone('{{ target_tz }}', {{ column }}) as {{ dbt_utils.type_timestamp() }})\n{%- else -%}\ncast(convert_timezone('{{ source_tz }}', '{{ target_tz }}', {{ column }}) as {{ dbt_utils.type_timestamp() }})\n{%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.243207}, "macro.dbt_date.bigquery__convert_timezone": {"unique_id": "macro.dbt_date.bigquery__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.243499}, "macro.dbt_date.spark__convert_timezone": {"unique_id": "macro.dbt_date.spark__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2438111}, "macro.dbt_date.postgres__convert_timezone": {"unique_id": "macro.dbt_date.postgres__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\n{%- if source_tz -%}\ncast({{ column }} at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt_utils.type_timestamp() }})\n{%- else -%}\ncast({{ column }} at time zone '{{ target_tz }}' as {{ dbt_utils.type_timestamp() }})\n{%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.244522}, "macro.dbt_date.redshift__convert_timezone": {"unique_id": "macro.dbt_date.redshift__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2448761}, "macro.dbt_date.n_months_away": {"unique_id": "macro.dbt_date.n_months_away", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "name": "n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt_utils.date_trunc('month', \n dbt_utils.dateadd('month', n, \n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.245653}, "macro.dbt_date.iso_week_of_year": {"unique_id": "macro.dbt_date.iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.246683}, "macro.dbt_date._iso_week_of_year": {"unique_id": "macro.dbt_date._iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "_iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ dbt_utils.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2470531}, "macro.dbt_date.default__iso_week_of_year": {"unique_id": "macro.dbt_date.default__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.247318}, "macro.dbt_date.snowflake__iso_week_of_year": {"unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.247581}, "macro.dbt_date.postgres__iso_week_of_year": {"unique_id": "macro.dbt_date.postgres__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2478578}, "macro.dbt_date.week_end": {"unique_id": "macro.dbt_date.week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_end"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2487922}, "macro.dbt_date.default__week_end": {"unique_id": "macro.dbt_date.default__week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ dbt_utils.last_day(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2490602}, "macro.dbt_date.snowflake__week_end": {"unique_id": "macro.dbt_date.snowflake__week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.249439}, "macro.dbt_date.postgres__week_end": {"unique_id": "macro.dbt_date.postgres__week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.24982}, "macro.dbt_date.next_month_number": {"unique_id": "macro.dbt_date.next_month_number", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "name": "next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(1, tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.250389}, "macro.dbt_date.last_month_number": {"unique_id": "macro.dbt_date.last_month_number", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "name": "last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(1, tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.250957}, "macro.google_ads_source.get_ad_group_history_columns": {"unique_id": "macro.google_ads_source.get_ad_group_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.252645}, "macro.google_ads_source.get_ad_group_stats_columns": {"unique_id": "macro.google_ads_source.get_ad_group_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_group_stats_columns.sql", "original_file_path": "macros/get_ad_group_stats_columns.sql", "name": "get_ad_group_stats_columns", "macro_sql": "{% macro get_ad_group_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__ad_group_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.255296}, "macro.google_ads_source.get_campaign_stats_columns": {"unique_id": "macro.google_ads_source.get_campaign_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_campaign_stats_columns.sql", "original_file_path": "macros/get_campaign_stats_columns.sql", "name": "get_campaign_stats_columns", "macro_sql": "{% macro get_campaign_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__campaign_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.257613}, "macro.google_ads_source.get_campaign_history_columns": {"unique_id": "macro.google_ads_source.get_campaign_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertising_channel_subtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertising_channel_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_date\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_date\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tracking_url_template\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.260038}, "macro.google_ads_source.get_ad_stats_columns": {"unique_id": "macro.google_ads_source.get_ad_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_stats_columns.sql", "original_file_path": "macros/get_ad_stats_columns.sql", "name": "get_ad_stats_columns", "macro_sql": "{% macro get_ad_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword_ad_group_criterion\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__ad_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2627048}, "macro.google_ads_source.get_account_history_columns": {"unique_id": "macro.google_ads_source.get_account_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"auto_tagging_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"descriptive_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"time_zone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2645319}, "macro.google_ads_source.get_ad_history_columns": {"unique_id": "macro.google_ads_source.get_ad_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"display_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"final_urls\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.266567}, "macro.google_ads_source.get_ad_group_criterion_history_columns": {"unique_id": "macro.google_ads_source.get_ad_group_criterion_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_group_criterion_history_columns.sql", "original_file_path": "macros/get_ad_group_criterion_history_columns.sql", "name": "get_ad_group_criterion_history_columns", "macro_sql": "{% macro get_ad_group_criterion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"base_campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"keyword_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"keyword_text\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2690291}, "macro.google_ads_source.get_keyword_stats_columns": {"unique_id": "macro.google_ads_source.get_keyword_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_keyword_stats_columns.sql", "original_file_path": "macros/get_keyword_stats_columns.sql", "name": "get_keyword_stats_columns", "macro_sql": "{% macro get_keyword_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_criterion_criterion_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__keyword_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2719061}, "macro.google_ads_source.get_account_stats_columns": {"unique_id": "macro.google_ads_source.get_account_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_account_stats_columns.sql", "original_file_path": "macros/get_account_stats_columns.sql", "name": "get_account_stats_columns", "macro_sql": "{% macro get_account_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__account_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.274217}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.275132}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__percentile"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.276982}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.277299}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.277611}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.277919}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.278197}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2785149}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.279428}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.280716}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.282451}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2831979}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.283666}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2841249}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2845771}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.285076}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.285585}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2862668}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.286541}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.286738}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.286931}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.287749}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.288919}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "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.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 {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.29013}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.291029}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.29129}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.291544}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.291797}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2920551}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2962291}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.296677}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.296989}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.2973921}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.300597}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3020082}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3022778}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.302799}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.30334}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.303668}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.303915}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.30416}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.305094}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "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_utils.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3061702}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.307123}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.307512}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.307942}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3085618}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "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.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.310375}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "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_utils.string_literal(relation) }} as {{ dbt_utils.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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.319202}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.319926}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.320767}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.32356}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.324928}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.326474}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.326766}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.327056}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.327378}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3276658}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3279612}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.329182}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "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 {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3309639}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.332159}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.332475}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.332778}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.33309}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3333912}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt_utils.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.333717}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.334335}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.334535}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.334728}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.336106}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.338336}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "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\n {% set relation=adapter.get_relation(\n database=var(database_variable, default_database),\n schema=schema,\n identifier=table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=database,\n schema=var(schema_variable, default_schema),\n identifier=table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.341921}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.344502}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3451142}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.345315}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.345509}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3463402}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.347185}, "macro.ad_reporting.is_enabled": {"unique_id": "macro.ad_reporting.is_enabled", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/is_enabled.sql", "original_file_path": "macros/is_enabled.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "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": 1662526941.142346}, "macro.ad_reporting.get_date_from_timestamp": {"unique_id": "macro.ad_reporting.get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "get_date_from_timestamp", "macro_sql": "{% macro get_date_from_timestamp(column) %}\n {{ return(adapter.dispatch('get_date_from_timestamp') (column)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.ad_reporting.bigquery__get_date_from_timestamp"]}, "description": "This macro takes a column of type timestamp or forces the column into a timestamp (depending on the data warehouse) and extracts the date in the format of e.g. 2022-01-01.", "meta": {}, "docs": {"show": true}, "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": 1662526941.133853}, "macro.ad_reporting.default__get_date_from_timestamp": {"unique_id": "macro.ad_reporting.default__get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "default__get_date_from_timestamp", "macro_sql": "{% macro default__get_date_from_timestamp(column) %}\n date({{column}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.348943}, "macro.ad_reporting.bigquery__get_date_from_timestamp": {"unique_id": "macro.ad_reporting.bigquery__get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "bigquery__get_date_from_timestamp", "macro_sql": "{% macro bigquery__get_date_from_timestamp(column) %}\n\n cast({{column}} as date)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.349134}, "macro.ad_reporting.spark__get_date_from_timestamp": {"unique_id": "macro.ad_reporting.spark__get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3493278}, "macro.ad_reporting.snowflake__get_date_from_timestamp": {"unique_id": "macro.ad_reporting.snowflake__get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "snowflake__get_date_from_timestamp", "macro_sql": "{% macro snowflake__get_date_from_timestamp(column) %}\n\n to_date(to_timestamp({{ column }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.349521}, "macro.ad_reporting.union_ctes": {"unique_id": "macro.ad_reporting.union_ctes", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/union_ctes.sql", "original_file_path": "macros/union_ctes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "This macro allows for the unioning (union all) of specified CTEs.", "meta": {}, "docs": {"show": true}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "ctes", "type": "list", "description": "List of strings for CTE names"}], "created_at": 1662526941.143898}, "macro.ad_reporting.get_query": {"unique_id": "macro.ad_reporting.get_query", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_query.sql", "original_file_path": "macros/get_query.sql", "name": "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 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 {%- 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 {%- do final_fields_superset.update({ad_group_field: ad_group_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For ad level reports, add ad_fields -#}\n{%- if report_type == 'ad' -%}\n {%- for ad_field in ad_fields -%}\n {%- do final_fields_superset.update({ad_field: ad_field})-%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For url level reports, add url_fields -#}\n{%- if report_type == 'url' -%}\n {%- for url_field in url_fields -%}\n {%- do final_fields_superset.update({url_field: url_field})-%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For keyword level reports, add keyword_fields -#}\n{%- if report_type == 'keyword' -%}\n {%- for keyword_field in 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 -#}\n{%- if report_type == 'search' -%}\n {%- for search_field in 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 {{ get_date_from_timestamp('date_day') }} as date_day,\n cast( '{{ platform }}' as {{ dbt_utils.type_string() }}) as platform,\n\n {% for field in final_fields_superset.keys()|sort() -%}\n {% if field in ['clicks', 'impressions'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt_utils.type_int() }}) as {{ field }}\n\n {% elif field == 'spend' -%}\n cast({{ final_fields_superset[field] }} as {{ dbt_utils.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_utils.type_string() }}) as {{ field }} \n {% endif -%}\n {%- if not loop.last -%},{%- endif -%}\n {%- endfor %}\nfrom {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.ad_reporting.get_date_from_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_float"]}, "description": "This macro compiles the final query with all aliasing and casting incorporated.", "meta": {}, "docs": {"show": true}, "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": 1662526941.140727}, "macro.ad_reporting.get_enabled_packages": {"unique_id": "macro.ad_reporting.get_enabled_packages", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_enabled_packages.sql", "original_file_path": "macros/get_enabled_packages.sql", "name": "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 '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\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 %}", "resource_type": "macro", "tags": [], "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}, "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": 1662526941.1368582}, "macro.apple_search_ads_source.get_ad_group_history_columns": {"unique_id": "macro.apple_search_ads_source.get_ad_group_history_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.365088}, "macro.apple_search_ads_source.get_ad_level_report_columns": {"unique_id": "macro.apple_search_ads_source.get_ad_level_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_ad_level_report_columns.sql", "original_file_path": "macros/get_ad_level_report_columns.sql", "name": "get_ad_level_report_columns", "macro_sql": "{% macro get_ad_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3680131}, "macro.apple_search_ads_source.get_search_term_report_columns": {"unique_id": "macro.apple_search_ads_source.get_search_term_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_search_term_report_columns.sql", "original_file_path": "macros/get_search_term_report_columns.sql", "name": "get_search_term_report_columns", "macro_sql": "{% macro get_search_term_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bid_amount_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"bid_amount_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"keyword_display_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"keyword_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"search_term_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"search_term_text\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__search_term_passthrough_metrics')) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.374615}, "macro.apple_search_ads_source.get_keyword_report_columns": {"unique_id": "macro.apple_search_ads_source.get_keyword_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "name": "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_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.376812}, "macro.apple_search_ads_source.get_campaign_report_columns": {"unique_id": "macro.apple_search_ads_source.get_campaign_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "name": "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_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3789382}, "macro.apple_search_ads_source.get_campaign_history_columns": {"unique_id": "macro.apple_search_ads_source.get_campaign_history_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.380738}, "macro.apple_search_ads_source.get_ad_history_columns": {"unique_id": "macro.apple_search_ads_source.get_ad_history_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"creation_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"org_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3828769}, "macro.apple_search_ads_source.get_ad_group_report_columns": {"unique_id": "macro.apple_search_ads_source.get_ad_group_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "name": "get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.385181}, "macro.apple_search_ads_source.get_organization_columns": {"unique_id": "macro.apple_search_ads_source.get_organization_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "name": "get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_model\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.386592}, "macro.apple_search_ads_source.get_keyword_history_columns": {"unique_id": "macro.apple_search_ads_source.get_keyword_history_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "name": "get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"bid_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"modification_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"text\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3886778}, "macro.pinterest_source.get_ad_group_history_columns": {"unique_id": "macro.pinterest_source.get_ad_group_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.390599}, "macro.pinterest_source.get_pin_promotion_history_columns": {"unique_id": "macro.pinterest_source.get_pin_promotion_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_pin_promotion_history_columns.sql", "original_file_path": "macros/get_pin_promotion_history_columns.sql", "name": "get_pin_promotion_history_columns", "macro_sql": "{% macro get_pin_promotion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"android_deep_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creative_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"destination_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ios_deep_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_pin_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_removable\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pin_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"review_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"view_tracking_url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.3942971}, "macro.pinterest_source.get_keyword_report_columns": {"unique_id": "macro.pinterest_source.get_keyword_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "name": "get_keyword_report_columns", "macro_sql": "{% macro get_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.397456}, "macro.pinterest_source.get_pin_promotion_report_columns": {"unique_id": "macro.pinterest_source.get_pin_promotion_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_pin_promotion_report_columns.sql", "original_file_path": "macros/get_pin_promotion_report_columns.sql", "name": "get_pin_promotion_report_columns", "macro_sql": "{% macro get_pin_promotion_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.400287}, "macro.pinterest_source.get_campaign_report_columns": {"unique_id": "macro.pinterest_source.get_campaign_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "name": "get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.40298}, "macro.pinterest_source.get_campaign_history_columns": {"unique_id": "macro.pinterest_source.get_campaign_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.404516}, "macro.pinterest_source.get_advertiser_history_columns": {"unique_id": "macro.pinterest_source.get_advertiser_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_advertiser_history_columns.sql", "original_file_path": "macros/get_advertiser_history_columns.sql", "name": "get_advertiser_history_columns", "macro_sql": "{% macro get_advertiser_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"billing_profile_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"merchant_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_user_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.407104}, "macro.pinterest_source.get_ad_group_report_columns": {"unique_id": "macro.pinterest_source.get_ad_group_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "name": "get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.409882}, "macro.pinterest_source.get_keyword_history_columns": {"unique_id": "macro.pinterest_source.get_keyword_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "name": "get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"archived\", \"datatype\": \"boolean\"},\n {\"name\": \"bid\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.412262}, "macro.pinterest_source.get_advertiser_report_columns": {"unique_id": "macro.pinterest_source.get_advertiser_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_advertiser_report_columns.sql", "original_file_path": "macros/get_advertiser_report_columns.sql", "name": "get_advertiser_report_columns", "macro_sql": "{% macro get_advertiser_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.414471}, "macro.tiktok_ads_source.get_ad_group_history_columns": {"unique_id": "macro.tiktok_ads_source.get_ad_group_history_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"action_days\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"adgroup_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"audience_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"budget\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"category\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"frequency_schedule\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"gender\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"interest_category_v_2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"action_categories\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"age\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"languages\", \"datatype\": dbt_utils.type_string()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4182599}, "macro.tiktok_ads_source.get_ad_group_report_hourly_columns": {"unique_id": "macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_ad_group_report_hourly_columns.sql", "original_file_path": "macros/get_ad_group_report_hourly_columns.sql", "name": "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_utils.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt_utils.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_group_hourly_passthrough_metrics')) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.423626}, "macro.tiktok_ads_source.get_advertiser_columns": {"unique_id": "macro.tiktok_ads_source.get_advertiser_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_advertiser_columns.sql", "original_file_path": "macros/get_advertiser_columns.sql", "name": "get_advertiser_columns", "macro_sql": "{% macro get_advertiser_columns() %}\n\n{% set columns = [\n {\"name\": \"address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"company\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"contacter\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"industry\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"telephone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4270122}, "macro.tiktok_ads_source.get_campaign_history_columns": {"unique_id": "macro.tiktok_ads_source.get_campaign_history_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"campaign_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"split_test_variable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.428565}, "macro.tiktok_ads_source.get_campaign_report_hourly_columns": {"unique_id": "macro.tiktok_ads_source.get_campaign_report_hourly_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_campaign_report_hourly_columns.sql", "original_file_path": "macros/get_campaign_report_hourly_columns.sql", "name": "get_campaign_report_hourly_columns", "macro_sql": "{% macro get_campaign_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt_utils.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__campaign_hourly_passthrough_metrics')) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4336588}, "macro.tiktok_ads_source.get_ad_history_columns": {"unique_id": "macro.tiktok_ads_source.get_ad_history_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"ad_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"call_to_action\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impression_tracking_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.435897}, "macro.tiktok_ads_source.get_ad_report_hourly_columns": {"unique_id": "macro.tiktok_ads_source.get_ad_report_hourly_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_ad_report_hourly_columns.sql", "original_file_path": "macros/get_ad_report_hourly_columns.sql", "name": "get_ad_report_hourly_columns", "macro_sql": "{% macro get_ad_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt_utils.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_hourly_passthrough_metrics')) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.440973}, "macro.facebook_ads_source.get_ad_set_history_columns": {"unique_id": "macro.facebook_ads_source.get_ad_set_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_ad_set_history_columns.sql", "original_file_path": "macros/get_ad_set_history_columns.sql", "name": "get_ad_set_history_columns", "macro_sql": "{% macro get_ad_set_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4433641}, "macro.facebook_ads_source.get_creative_history_columns": {"unique_id": "macro.facebook_ads_source.get_creative_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "name": "get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"page_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_page_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_tags\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"asset_feed_spec_link_urls\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_child_attachments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_caption\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_message\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_app_link_spec_android\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_app_link_spec_ios\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_app_link_spec_ipad\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_app_link_spec_iphone\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.447019}, "macro.facebook_ads_source.get_campaign_history_columns": {"unique_id": "macro.facebook_ads_source.get_campaign_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"stop_time\", \"datatype\": dbt_utils.type_timestamp()}, \n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"lifetime_budget\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.449389}, "macro.facebook_ads_source.get_basic_ad_columns": {"unique_id": "macro.facebook_ads_source.get_basic_ad_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_basic_ad_columns.sql", "original_file_path": "macros/get_basic_ad_columns.sql", "name": "get_basic_ad_columns", "macro_sql": "{% macro get_basic_ad_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"adset_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"inline_link_clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"reach\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"frequency\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('facebook_ads__basic_ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4517262}, "macro.facebook_ads_source.get_account_history_columns": {"unique_id": "macro.facebook_ads_source.get_account_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"business_country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone_name\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4535968}, "macro.facebook_ads_source.get_ad_history_columns": {"unique_id": "macro.facebook_ads_source.get_ad_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_set_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"creative_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.455283}, "macro.snapchat_ads_source.get_campaign_hourly_report_columns": {"unique_id": "macro.snapchat_ads_source.get_campaign_hourly_report_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_campaign_hourly_report_columns.sql", "original_file_path": "macros/get_campaign_hourly_report_columns.sql", "name": "get_campaign_hourly_report_columns", "macro_sql": "{% macro get_campaign_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.459382}, "macro.snapchat_ads_source.get_ad_squad_history_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_squad_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_squad_history_columns.sql", "original_file_path": "macros/get_ad_squad_history_columns.sql", "name": "get_ad_squad_history_columns", "macro_sql": "{% macro get_ad_squad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.460917}, "macro.snapchat_ads_source.get_creative_history_columns": {"unique_id": "macro.snapchat_ads_source.get_creative_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "name": "get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"web_view_url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.462612}, "macro.snapchat_ads_source.get_ad_hourly_report_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_hourly_report_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_hourly_report_columns.sql", "name": "get_ad_hourly_report_columns", "macro_sql": "{% macro get_ad_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"quartile_1\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"quartile_2\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"quartile_3\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"saves\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"swipes\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"view_completion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4668832}, "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_squad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_squad_hourly_report_columns.sql", "name": "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_utils.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.471692}, "macro.snapchat_ads_source.get_campaign_history_columns": {"unique_id": "macro.snapchat_ads_source.get_campaign_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4732869}, "macro.snapchat_ads_source.get_creative_url_tag_history_columns": {"unique_id": "macro.snapchat_ads_source.get_creative_url_tag_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_creative_url_tag_history_columns.sql", "original_file_path": "macros/get_creative_url_tag_history_columns.sql", "name": "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_utils.type_string()},\n {\"name\": \"key\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4745119}, "macro.snapchat_ads_source.get_ad_history_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_squad_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creative_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4762099}, "macro.snapchat_ads_source.get_ad_account_history_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_account_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_account_history_columns.sql", "original_file_path": "macros/get_ad_account_history_columns.sql", "name": "get_ad_account_history_columns", "macro_sql": "{% macro get_ad_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"advertiser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.47824}, "macro.twitter_ads_source.get_tweet_columns": {"unique_id": "macro.twitter_ads_source.get_tweet_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/get_tweet_columns.sql", "original_file_path": "macros/get_tweet_columns.sql", "name": "get_tweet_columns", "macro_sql": "{% macro get_tweet_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"full_text\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lang\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.479615}, "macro.twitter_ads_source.get_line_item_keywords_report_columns": {"unique_id": "macro.twitter_ads_source.get_line_item_keywords_report_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/get_line_item_keywords_report_columns.sql", "original_file_path": "macros/get_line_item_keywords_report_columns.sql", "name": "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_utils.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"segment\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.481819}, "macro.twitter_ads_source.get_line_item_report_columns": {"unique_id": "macro.twitter_ads_source.get_line_item_report_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/get_line_item_report_columns.sql", "original_file_path": "macros/get_line_item_report_columns.sql", "name": "get_line_item_report_columns", "macro_sql": "{% macro get_line_item_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.483868}, "macro.twitter_ads_source.get_campaign_report_columns": {"unique_id": "macro.twitter_ads_source.get_campaign_report_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "name": "get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4859068}, "macro.twitter_ads_source.get_account_history_columns": {"unique_id": "macro.twitter_ads_source.get_account_history_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"business_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"business_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"industry_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"salt\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone_switch_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.491387}, "macro.twitter_ads_source.get_campaign_history_columns": {"unique_id": "macro.twitter_ads_source.get_campaign_history_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"daily_budget_amount_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"duration_in_days\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"frequency_cap\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"servable\", \"datatype\": \"boolean\"},\n {\"name\": \"standard_delivery\", \"datatype\": \"boolean\"},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.4942248}, "macro.twitter_ads_source.get_line_item_history_columns": {"unique_id": "macro.twitter_ads_source.get_line_item_history_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_line_item_history_columns", "macro_sql": "{% macro get_line_item_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_domain\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_user_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"automatically_select_bid\", \"datatype\": \"boolean\"},\n {\"name\": \"bid_amount_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bid_unit\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"charge_by\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creative_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"optimization\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"primary_web_event_tag\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"product_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"target_cpa_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.498136}, "macro.twitter_ads_source.get_promoted_tweet_history_columns": {"unique_id": "macro.twitter_ads_source.get_promoted_tweet_history_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_promoted_tweet_history_columns", "macro_sql": "{% macro get_promoted_tweet_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"entity_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.499583}, "macro.twitter_ads_source.get_tweet_url_columns": {"unique_id": "macro.twitter_ads_source.get_tweet_url_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_tweet_url_columns", "macro_sql": "{% macro get_tweet_url_columns() %}\n\n{% set columns = [\n {\"name\": \"display_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expanded_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"indices\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5007622}, "macro.twitter_ads_source.get_promoted_tweet_report_columns": {"unique_id": "macro.twitter_ads_source.get_promoted_tweet_report_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_promoted_tweet_report_columns", "macro_sql": "{% macro get_promoted_tweet_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"promoted_tweet_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.502366}, "macro.dbt_expectations.type_timestamp": {"unique_id": "macro.dbt_expectations.type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_expectations')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.503175}, "macro.dbt_expectations.default__type_timestamp": {"unique_id": "macro.dbt_expectations.default__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() -%}\n timestamp\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.503326}, "macro.dbt_expectations.snowflake__type_timestamp": {"unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5034728}, "macro.dbt_expectations.postgres__type_timestamp": {"unique_id": "macro.dbt_expectations.postgres__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5036218}, "macro.dbt_expectations.type_datetime": {"unique_id": "macro.dbt_expectations.type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "type_datetime", "macro_sql": "{% macro type_datetime() -%}\n {{ return(adapter.dispatch('type_datetime', 'dbt_expectations')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5039418}, "macro.dbt_expectations.default__type_datetime": {"unique_id": "macro.dbt_expectations.default__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "default__type_datetime", "macro_sql": "{% macro default__type_datetime() -%}\n datetime\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.504092}, "macro.dbt_expectations.snowflake__type_datetime": {"unique_id": "macro.dbt_expectations.snowflake__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "snowflake__type_datetime", "macro_sql": "{% macro snowflake__type_datetime() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.504239}, "macro.dbt_expectations.postgres__type_datetime": {"unique_id": "macro.dbt_expectations.postgres__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "postgres__type_datetime", "macro_sql": "{% macro postgres__type_datetime() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.504386}, "macro.dbt_expectations.regexp_instr": {"unique_id": "macro.dbt_expectations.regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "regexp_instr", "macro_sql": "{% macro regexp_instr(source_value, regexp, position=1, occurrence=1) %}\n\n {{ adapter.dispatch('regexp_instr', 'dbt_expectations')(\n source_value, regexp, position, occurrence\n ) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5055091}, "macro.dbt_expectations.default__regexp_instr": {"unique_id": "macro.dbt_expectations.default__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "default__regexp_instr", "macro_sql": "{% macro default__regexp_instr(source_value, regexp, position, occurrence) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.505863}, "macro.dbt_expectations.redshift__regexp_instr": {"unique_id": "macro.dbt_expectations.redshift__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "redshift__regexp_instr", "macro_sql": "{% macro redshift__regexp_instr(source_value, regexp, position, occurrence) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.50621}, "macro.dbt_expectations.postgres__regexp_instr": {"unique_id": "macro.dbt_expectations.postgres__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "postgres__regexp_instr", "macro_sql": "{% macro postgres__regexp_instr(source_value, regexp, position, occurrence) %}\narray_length((select regexp_matches({{ source_value }}, '{{ regexp }}')), 1)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.506489}, "macro.dbt_expectations.spark__regexp_instr": {"unique_id": "macro.dbt_expectations.spark__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "spark__regexp_instr", "macro_sql": "{% macro spark__regexp_instr(source_value, regexp, position, occurrence) %}\ncase when {{ source_value }} rlike '{{ regexp }}' then 1 else 0 end\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.506764}, "macro.dbt_expectations.log_natural": {"unique_id": "macro.dbt_expectations.log_natural", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "log_natural", "macro_sql": "{% macro log_natural(x) -%}\n {{ adapter.dispatch('log_natural', 'dbt_expectations') (x) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.bigquery__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.507403}, "macro.dbt_expectations.default__log_natural": {"unique_id": "macro.dbt_expectations.default__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "default__log_natural", "macro_sql": "{% macro default__log_natural(x) %}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5075998}, "macro.dbt_expectations.bigquery__log_natural": {"unique_id": "macro.dbt_expectations.bigquery__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "bigquery__log_natural", "macro_sql": "{% macro bigquery__log_natural(x) %}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.507793}, "macro.dbt_expectations.snowflake__log_natural": {"unique_id": "macro.dbt_expectations.snowflake__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "snowflake__log_natural", "macro_sql": "{% macro snowflake__log_natural(x) %}\n\n ln({{ x }})\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.507988}, "macro.dbt_expectations.rand": {"unique_id": "macro.dbt_expectations.rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "rand", "macro_sql": "{% macro rand() -%}\n {{ adapter.dispatch('rand', 'dbt_expectations') () }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.bigquery__rand"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.508641}, "macro.dbt_expectations.default__rand": {"unique_id": "macro.dbt_expectations.default__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "default__rand", "macro_sql": "{% macro default__rand() %}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.508826}, "macro.dbt_expectations.bigquery__rand": {"unique_id": "macro.dbt_expectations.bigquery__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "bigquery__rand", "macro_sql": "{% macro bigquery__rand() %}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5089679}, "macro.dbt_expectations.snowflake__rand": {"unique_id": "macro.dbt_expectations.snowflake__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "snowflake__rand", "macro_sql": "{% macro snowflake__rand(seed) %}\n\n uniform(0::float, 1::float, random())\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.509228}, "macro.dbt_expectations.postgres__rand": {"unique_id": "macro.dbt_expectations.postgres__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "postgres__rand", "macro_sql": "{% macro postgres__rand() %}\n\n random()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5093691}, "macro.dbt_expectations.redshift__rand": {"unique_id": "macro.dbt_expectations.redshift__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "redshift__rand", "macro_sql": "{% macro redshift__rand() %}\n\n random()\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.509505}, "macro.dbt_expectations.median": {"unique_id": "macro.dbt_expectations.median", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/median.sql", "original_file_path": "macros/math/median.sql", "name": "median", "macro_sql": "{% macro median(field) %}\n{{ dbt_expectations.percentile_cont(field, 0.5) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.509993}, "macro.dbt_expectations.percentile_cont": {"unique_id": "macro.dbt_expectations.percentile_cont", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "percentile_cont", "macro_sql": "{% macro percentile_cont(field, quantile, partition=None) %}\n {{ adapter.dispatch('quantile', 'dbt_expectations') (field, quantile, partition) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.bigquery__quantile"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5108328}, "macro.dbt_expectations.default__quantile": {"unique_id": "macro.dbt_expectations.default__quantile", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "default__quantile", "macro_sql": "{% macro default__quantile(field, quantile, partition) -%}\n percentile_cont({{ quantile }}) within group (order by {{ field }})\n {%- if partition %}over(partition by {{ partition }}){% endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5112169}, "macro.dbt_expectations.bigquery__quantile": {"unique_id": "macro.dbt_expectations.bigquery__quantile", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "bigquery__quantile", "macro_sql": "{% macro bigquery__quantile(field, quantile, partition) %}\n percentile_cont({{ field }}, {{ quantile }})\n over({%- if partition %}partition by {{ partition }}{% endif -%})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.511602}, "macro.dbt_expectations.test_expression_between": {"unique_id": "macro.dbt_expectations.test_expression_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "name": "test_expression_between", "macro_sql": "{% test expression_between(model,\n expression,\n min_value=None,\n max_value=None,\n group_by_columns=None,\n row_condition=None,\n strictly=False\n ) %}\n\n {{ dbt_expectations.expression_between(model, expression, min_value, max_value, group_by_columns, row_condition, strictly) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.513576}, "macro.dbt_expectations.expression_between": {"unique_id": "macro.dbt_expectations.expression_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "name": "expression_between", "macro_sql": "{% macro expression_between(model,\n expression,\n min_value,\n max_value,\n group_by_columns,\n row_condition,\n strictly\n ) %}\n\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n\n{%- set strict_operator = \"\" if strictly else \"=\" -%}\n\n{% set expression_min_max %}\n( 1=1\n{%- if min_value is not none %} and {{ expression | trim }} >{{ strict_operator }} {{ min_value }}{% endif %}\n{%- if max_value is not none %} and {{ expression | trim }} <{{ strict_operator }} {{ max_value }}{% endif %}\n)\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression_min_max,\n group_by_columns=group_by_columns,\n row_condition=row_condition)\n }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5152671}, "macro.dbt_expectations.test_expression_is_true": {"unique_id": "macro.dbt_expectations.test_expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n\n {{ dbt_expectations.expression_is_true(model, expression, test_condition, group_by_columns, row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.516989}, "macro.dbt_expectations.expression_is_true": {"unique_id": "macro.dbt_expectations.expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "expression_is_true", "macro_sql": "{% macro expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n {{ adapter.dispatch('expression_is_true', 'dbt_expectations') (model, expression, test_condition, group_by_columns, row_condition) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.51752}, "macro.dbt_expectations.default__expression_is_true": {"unique_id": "macro.dbt_expectations.default__expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "default__expression_is_true", "macro_sql": "{% macro default__expression_is_true(model, expression, test_condition, group_by_columns, row_condition) -%}\nwith grouped_expression as (\n select\n {% if group_by_columns %}\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ dbt_expectations.truth_expression(expression) }}\n from {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by_columns %}\n group by\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression {{ test_condition }})\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.518653}, "macro.dbt_expectations.get_select": {"unique_id": "macro.dbt_expectations.get_select", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "get_select", "macro_sql": "{% macro get_select(model, expression, row_condition, group_by) -%}\n {{ adapter.dispatch('get_select', 'dbt_expectations') (model, expression, row_condition, group_by) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__get_select"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.526484}, "macro.dbt_expectations.default__get_select": {"unique_id": "macro.dbt_expectations.default__get_select", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "default__get_select", "macro_sql": "\n\n{%- macro default__get_select(model, expression, row_condition, group_by) %}\n select\n {% if group_by %}\n {% for g in group_by -%}\n {{ g }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ expression }} as expression\n from\n {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by %}\n group by\n {% for g in group_by -%}\n {{ loop.index }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n{% endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5275111}, "macro.dbt_expectations.test_equal_expression": {"unique_id": "macro.dbt_expectations.test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "test_equal_expression", "macro_sql": "{% test equal_expression(model, expression,\n compare_model=None,\n compare_expression=None,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None,\n tolerance=0.0,\n tolerance_percent=None\n ) -%}\n\n {{ adapter.dispatch('test_equal_expression', 'dbt_expectations') (\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5283651}, "macro.dbt_expectations.default__test_equal_expression": {"unique_id": "macro.dbt_expectations.default__test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "default__test_equal_expression", "macro_sql": "\n\n{%- macro default__test_equal_expression(\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) -%}\n\n {%- set compare_model = model if not compare_model else compare_model -%}\n {%- set compare_expression = expression if not compare_expression else compare_expression -%}\n {%- set compare_row_condition = row_condition if not compare_row_condition else compare_row_condition -%}\n {%- set compare_group_by = group_by if not compare_group_by else compare_group_by -%}\n\n {%- set n_cols = (group_by|length) if group_by else 0 %}\n with a as (\n {{ dbt_expectations.get_select(model, expression, row_condition, group_by) }}\n ),\n b as (\n {{ dbt_expectations.get_select(compare_model, compare_expression, compare_row_condition, compare_group_by) }}\n ),\n final as (\n\n select\n {% for i in range(1, n_cols + 1) -%}\n coalesce(a.col_{{ i }}, b.col_{{ i }}) as col_{{ i }},\n {% endfor %}\n a.expression,\n b.expression as compare_expression,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0)) as expression_difference,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0))/\n nullif(a.expression * 1.0, 0) as expression_difference_percent\n from\n {% if n_cols > 0 %}\n a\n full outer join\n b on\n {% for i in range(1, n_cols + 1) -%}\n a.col_{{ i }} = b.col_{{ i }} {% if not loop.last %}and{% endif %}\n {% endfor -%}\n {% else %}\n a cross join b\n {% endif %}\n )\n -- DEBUG:\n -- select * from final\n select\n *\n from final\n where\n {% if tolerance_percent %}\n expression_difference_percent > {{ tolerance_percent }}\n {% else %}\n expression_difference > {{ tolerance }}\n {% endif %}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.get_select"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5307431}, "macro.dbt_expectations.truth_expression": {"unique_id": "macro.dbt_expectations.truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "name": "truth_expression", "macro_sql": "{% macro truth_expression(expression) %}\n {{ adapter.dispatch('truth_expression', 'dbt_expectations') (expression) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.531328}, "macro.dbt_expectations.default__truth_expression": {"unique_id": "macro.dbt_expectations.default__truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "name": "default__truth_expression", "macro_sql": "{% macro default__truth_expression(expression) %}\n {{ expression }} as expression\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.531561}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "name": "test_expect_column_values_to_match_like_pattern", "macro_sql": "{% test expect_column_values_to_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.533174}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "name": "test_expect_column_values_to_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5355258}, "macro.dbt_expectations.test_expect_column_values_to_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "name": "test_expect_column_values_to_match_regex", "macro_sql": "{% test expect_column_values_to_match_regex(model, column_name,\n regex,\n row_condition=None\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex) }} > 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.536682}, "macro.dbt_expectations.test_expect_column_value_lengths_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "name": "test_expect_column_value_lengths_to_equal", "macro_sql": "{% test expect_column_value_lengths_to_equal(model, column_name,\n value,\n row_condition=None\n ) %}\n\n{% set expression = dbt_utils.length(column_name) ~ \" = \" ~ value %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.537674}, "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "name": "test_expect_column_value_lengths_to_be_between", "macro_sql": "{% test expect_column_value_lengths_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\n{{ dbt_utils.length(column_name) }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.539145}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "name": "test_expect_column_values_to_not_match_regex", "macro_sql": "{% test expect_column_values_to_not_match_regex(model, column_name,\n regex,\n row_condition=None\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex) }} = 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5402482}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "name": "test_expect_column_values_to_not_match_regex_list", "macro_sql": "{% test expect_column_values_to_not_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for regex in regex_list %}\n{{ dbt_expectations.regexp_instr(column_name, regex) }} = 0\n{%- if not loop.last %}\n{{ \" and \" if match_on == \"all\" else \" or \"}}\n{% endif -%}\n{% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.542007}, "macro.dbt_expectations.test_expect_column_values_to_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "name": "test_expect_column_values_to_match_regex_list", "macro_sql": "{% test expect_column_values_to_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for regex in regex_list %}\n {{ dbt_expectations.regexp_instr(column_name, regex) }} > 0\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5438259}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "name": "test_expect_column_values_to_not_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.545591}, "macro.dbt_expectations._get_like_pattern_expression": {"unique_id": "macro.dbt_expectations._get_like_pattern_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "original_file_path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "name": "_get_like_pattern_expression", "macro_sql": "{% macro _get_like_pattern_expression(column_name, like_pattern, positive) %}\n{{ column_name }} {{ \"not\" if not positive else \"\" }} like '{{ like_pattern }}'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.546193}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "name": "test_expect_column_values_to_not_match_like_pattern", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5472481}, "macro.dbt_expectations.test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "name": "test_expect_row_values_to_have_recent_data", "macro_sql": "{% test expect_row_values_to_have_recent_data(model,\n column_name,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_row_values_to_have_recent_data', 'dbt_expectations') (model,\n column_name,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5490189}, "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "name": "default__test_expect_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_row_values_to_have_recent_data(model, column_name, datepart, interval, row_condition) %}\n{%- set default_start_date = '1970-01-01' -%}\nwith max_recency as (\n\n select max(cast({{ column_name }} as {{ dbt_utils.type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ dbt_utils.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('{{ default_start_date }}' as {{ dbt_utils.type_timestamp() }}))\n <\n cast({{ dbt_utils.dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ dbt_utils.type_timestamp() }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_date.now", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.550143}, "macro.dbt_expectations.test_expect_table_columns_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "name": "test_expect_table_columns_to_contain_set", "macro_sql": "{%- test expect_table_columns_to_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n input_columns i\n left join\n relation_columns r on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n r.relation_column is null\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.552426}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "name": "test_expect_table_row_count_to_equal_other_table", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table(model, compare_model, factor=1, row_condition=None, compare_row_condition=None) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5532649}, "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "name": "test_expect_table_columns_to_not_contain_set", "macro_sql": "{%- test expect_table_columns_to_not_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n -- catch any column in input list that is in the list of table columns\n select *\n from\n input_columns i\n inner join\n relation_columns r on r.relation_column = i.input_column\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.555418}, "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "name": "test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% test expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_grouped_row_values_to_have_recent_data', 'dbt_expectations') (model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.559542}, "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "name": "default__test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) %}\nwith latest_grouped_timestamps as (\n\n select\n {%- for g in group_by %}\n {{ g }},\n {%- endfor %}\n max(1) as join_key,\n max(cast({{ timestamp_column }} as {{ dbt_utils.type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ dbt_utils.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n\n {{ dbt_utils.group_by(group_by | length )}}\n\n),\ntotal_row_counts as (\n\n select\n max(1) as join_key,\n count(*) as row_count\n from\n latest_grouped_timestamps\n\n),\noutdated_grouped_timestamps as (\n\n select *\n from\n latest_grouped_timestamps\n where\n -- are the max timestamps per group older than the specified cutoff?\n latest_timestamp_column <\n cast(\n {{ dbt_utils.dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ dbt_utils.type_timestamp() }}\n )\n\n),\nvalidation_errors as (\n\n select\n r.row_count,\n t.*\n from\n total_row_counts r\n left join\n outdated_grouped_timestamps t\n on r.join_key = t.join_key\n where\n -- fail if either no rows were returned due to row_condition,\n -- or the recency test returned failed rows\n r.row_count = 0\n or\n t.join_key is not null\n\n)\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_date.now", "macro.dbt_utils.group_by", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.560968}, "macro.dbt_expectations.test_expect_column_to_exist": {"unique_id": "macro.dbt_expectations.test_expect_column_to_exist", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "original_file_path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "name": "test_expect_column_to_exist", "macro_sql": "{%- test expect_column_to_exist(model, column_name, column_index=None, transform=\"upper\") -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | map(transform) | join -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n\n {%- set matching_column_index = relation_column_names.index(column_name) if column_name in relation_column_names else -1 %}\n\n {%- if column_index -%}\n\n {%- set column_index_0 = column_index - 1 if column_index > 0 else 0 -%}\n\n {%- set column_index_matches = true if matching_column_index == column_index_0 else false %}\n\n {%- else -%}\n\n {%- set column_index_matches = true -%}\n\n {%- endif %}\n\n with test_data as (\n\n select\n cast('{{ column_name }}' as {{ dbt_utils.type_string() }}) as column_name,\n {{ matching_column_index }} as matching_column_index,\n {{ column_index_matches }} as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.563044}, "macro.dbt_expectations.test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "name": "test_expect_table_row_count_to_equal", "macro_sql": "{%- test expect_table_row_count_to_equal(model,\n value,\n group_by=None,\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal',\n 'dbt_expectations') (model,\n value,\n group_by,\n row_condition\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.565451}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "name": "default__test_expect_table_row_count_to_equal", "macro_sql": "\n\n\n\n{%- macro default__test_expect_table_row_count_to_equal(model,\n value,\n group_by,\n row_condition\n ) -%}\n{% set expression %}\ncount(*) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.566435}, "macro.dbt_expectations.test_expect_table_row_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "name": "test_expect_table_row_count_to_be_between", "macro_sql": "{%- test expect_table_row_count_to_be_between(model,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n{% set expression %}\ncount(*)\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.568552}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "name": "test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table_times_factor(model, compare_model, factor, row_condition=None, compare_row_condition=None) -%}\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model, compare_model,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.569581}, "macro.dbt_expectations.test_expect_table_columns_to_match_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "name": "test_expect_table_columns_to_match_set", "macro_sql": "{%- test expect_table_columns_to_match_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n -- or any table column that is not in the input list\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5720818}, "macro.dbt_expectations._get_column_list": {"unique_id": "macro.dbt_expectations._get_column_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/_get_column_list.sql", "original_file_path": "macros/schema_tests/table_shape/_get_column_list.sql", "name": "_get_column_list", "macro_sql": "{%- macro _get_column_list(model, transform=\"upper\") -%}\n{%- set relation_columns = adapter.get_columns_in_relation(model) -%}\n{%- set relation_column_names = relation_columns | map(attribute=\"name\") | map(transform) | list -%}\n{%- do return(relation_column_names) -%}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5730739}, "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "name": "test_expect_table_columns_to_match_ordered_list", "macro_sql": "{%- test expect_table_columns_to_match_ordered_list(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select\n {{ loop.index }} as relation_column_idx,\n cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select\n {{ loop.index }} as input_column_idx,\n cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column and r.relation_column_idx = i.input_column_idx\n where\n -- catch any column in input list that is not in the sequence of table columns\n -- or any table column that is not in the input sequence\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5762482}, "macro.dbt_expectations._list_intersect": {"unique_id": "macro.dbt_expectations._list_intersect", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/_list_intersect.sql", "original_file_path": "macros/schema_tests/table_shape/_list_intersect.sql", "name": "_list_intersect", "macro_sql": "{%- macro _list_intersect(list1, list2) -%}\n{%- set matching_items = [] -%}\n{%- for itm in list1 -%}\n {%- if itm in list2 -%}\n {%- do matching_items.append(itm) -%}\n {%- endif -%}\n{%- endfor -%}\n{%- do return(matching_items) -%}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.577236}, "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "name": "test_expect_table_column_count_to_equal_other_table", "macro_sql": "{%- test expect_table_column_count_to_equal_other_table(model, compare_model) -%}\n{%- if execute -%}\n{%- set number_columns = (adapter.get_columns_in_relation(model) | length) -%}\n{%- set compare_number_columns = (adapter.get_columns_in_relation(compare_model) | length) -%}\nwith test_data as (\n\n select\n {{ number_columns }} as number_columns,\n {{ compare_number_columns }} as compare_number_columns\n\n)\nselect *\nfrom test_data\nwhere\n number_columns != compare_number_columns\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.578283}, "macro.dbt_expectations.test_expect_table_column_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "name": "test_expect_table_column_count_to_equal", "macro_sql": "{%- test expect_table_column_count_to_equal(model, value) -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ value }} as value\n\n)\nselect *\nfrom test_data\nwhere\n number_actual_columns != value\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.57906}, "macro.dbt_expectations.test_expect_table_column_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "name": "test_expect_table_column_count_to_be_between", "macro_sql": "{%- test expect_table_column_count_to_be_between(model,\n min_value=None,\n max_value=None\n ) -%}\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\n\n{%- set expression %}\n( 1=1\n{%- if min_value %} and number_actual_columns >= min_value{% endif %}\n{%- if max_value %} and number_actual_columns <= max_value{% endif %}\n)\n{% endset -%}\n\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ min_value if min_value else 0 }} as min_value,\n {{ max_value if max_value else 0 }} as max_value\n\n)\nselect *\nfrom test_data\nwhere\n not {{ expression }}\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.580891}, "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "name": "test_expect_column_values_to_not_be_in_set", "macro_sql": "{% test expect_column_values_to_not_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt_utils.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that match the set\n select\n v.value_field\n from\n all_values v\n join\n set_values s on v.value_field = s.value_field\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.582593}, "macro.dbt_expectations.test_expect_column_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "name": "test_expect_column_values_to_be_in_set", "macro_sql": "{% test expect_column_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt_utils.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.584399}, "macro.dbt_expectations.test_expect_column_values_to_be_increasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_increasing", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "name": "test_expect_column_values_to_be_increasing", "macro_sql": "{% test expect_column_values_to_be_increasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \">\" if strictly else \">=\" -%}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.587567}, "macro.dbt_expectations.test_expect_column_values_to_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_null", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "name": "test_expect_column_values_to_be_null", "macro_sql": "{% test expect_column_values_to_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5886898}, "macro.dbt_expectations.test_expect_column_values_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_unique", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "name": "test_expect_column_values_to_be_unique", "macro_sql": "{% test expect_column_values_to_be_unique(model, column_name, row_condition=None) %}\n{{ dbt_expectations.test_expect_compound_columns_to_be_unique(model, [column_name], row_condition=row_condition) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_compound_columns_to_be_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.589448}, "macro.dbt_expectations.test_expect_column_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "name": "test_expect_column_values_to_be_between", "macro_sql": "{% test expect_column_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ column_name }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.591158}, "macro.dbt_expectations.test_expect_column_values_to_be_decreasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_decreasing", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "name": "test_expect_column_values_to_be_decreasing", "macro_sql": "{% test expect_column_values_to_be_decreasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \"<\" if strictly else \"<=\" %}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.593869}, "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "name": "test_expect_column_values_to_be_in_type_list", "macro_sql": "{%- test expect_column_values_to_be_in_type_list(model, column_name, column_type_list) -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | upper -%}\n {%- set columns_in_relation = adapter.get_columns_in_relation(model) -%}\n {%- set column_type_list = column_type_list| map(\"upper\") | list -%}\n with relation_columns as (\n\n {% for column in columns_in_relation %}\n select\n cast('{{ column.name | upper }}' as {{ dbt_utils.type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ dbt_utils.type_string() }}) as relation_column_type\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '{{ column_name }}'\n and\n relation_column_type not in ('{{ column_type_list | join(\"', '\") }}')\n\n )\n select *\n from test_data\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.59636}, "macro.dbt_expectations.test_expect_column_values_to_be_of_type": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_of_type", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "name": "test_expect_column_values_to_be_of_type", "macro_sql": "{%- test expect_column_values_to_be_of_type(model, column_name, column_type) -%}\n{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(model, column_name, [column_type]) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.597097}, "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "name": "test_expect_column_values_to_have_consistent_casing", "macro_sql": "{% test expect_column_values_to_have_consistent_casing(model, column_name, display_inconsistent_columns=False) %}\n\nwith test_data as (\n\n select\n distinct {{ column_name }} as distinct_values\n from\n {{ model }}\n\n ),\n {% if display_inconsistent_columns %}\n validation_errors as (\n\n select\n lower(distinct_values) as inconsistent_columns,\n count(distinct_values) as set_count_case_insensitive\n from\n test_data\n group by 1\n having\n count(distinct_values) > 1\n\n )\n select * from validation_errors\n {% else %}\n validation_errors as (\n\n select\n count(1) as set_count,\n count(distinct lower(distinct_values)) as set_count_case_insensitive\n from\n test_data\n\n )\n select *\n from\n validation_errors\n where\n set_count != set_count_case_insensitive\n {% endif %}\n {%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5981681}, "macro.dbt_expectations.test_expect_column_values_to_not_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_null", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "name": "test_expect_column_values_to_not_be_null", "macro_sql": "{% test expect_column_values_to_not_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is not null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.5993679}, "macro.dbt_expectations.test_expect_column_min_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_min_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "name": "test_expect_column_min_to_be_between", "macro_sql": "{% test expect_column_min_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmin({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.601355}, "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "name": "test_expect_column_unique_value_count_to_be_between", "macro_sql": "{% test expect_column_unique_value_count_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.603502}, "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "name": "test_expect_column_quantile_values_to_be_between", "macro_sql": "{% test expect_column_quantile_values_to_be_between(model, column_name,\n quantile,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.percentile_cont(column_name, quantile) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.605828}, "macro.dbt_expectations.test_expect_column_median_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_median_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "name": "test_expect_column_median_to_be_between", "macro_sql": "{% test expect_column_median_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.median(column_name) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.median", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.608042}, "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "name": "test_expect_column_proportion_of_unique_values_to_be_between", "macro_sql": "{% test expect_column_proportion_of_unique_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})/count({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.610345}, "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "name": "test_expect_column_distinct_values_to_equal_set", "macro_sql": "{% test expect_column_distinct_values_to_equal_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as column_value\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n all_values v\n full outer join\n unique_set_values s on v.column_value = s.value_field\n where\n v.column_value is null or\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.61276}, "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "name": "test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% test expect_column_most_common_value_to_be_in_set(model, column_name,\n value_set,\n top_n,\n quote_values=False,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (model, column_name, value_set, top_n, quote_values, data_type, row_condition) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.616641}, "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "name": "default__test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% macro default__test_expect_column_most_common_value_to_be_in_set(model, column_name,\n value_set,\n top_n,\n quote_values,\n data_type,\n row_condition\n ) %}\n\nwith value_counts as (\n\n select\n {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %} as value_field,\n count(*) as value_count\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n group by {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %}\n\n),\nvalue_counts_ranked as (\n\n select\n *,\n row_number() over(order by value_count desc) as value_count_rank\n from\n value_counts\n\n),\nvalue_count_top_n as (\n\n select\n value_field\n from\n value_counts_ranked\n where\n value_count_rank = {{ top_n }}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n cast({{ value }} as {{ data_type }})\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n value_field\n from\n value_count_top_n\n where\n value_field not in (select value_field from unique_set_values)\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.6493702}, "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "name": "test_expect_column_distinct_values_to_contain_set", "macro_sql": "{% test expect_column_distinct_values_to_contain_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values in set that are not in the list of values from the model\n select\n s.value_field\n from\n unique_set_values s\n left join\n all_values v on s.value_field = v.value_field\n where\n v.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.652151}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "name": "test_expect_column_distinct_count_to_equal", "macro_sql": "{% test expect_column_distinct_count_to_equal(model,\n column_name,\n value,\n quote_values=False,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.6540449}, "macro.dbt_expectations.test_expect_column_sum_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_sum_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "name": "test_expect_column_sum_to_be_between", "macro_sql": "{% test expect_column_sum_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nsum({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.656239}, "macro.dbt_expectations.test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "name": "test_expect_column_stdev_to_be_between", "macro_sql": "{% test expect_column_stdev_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n {{ adapter.dispatch('test_expect_column_stdev_to_be_between', 'dbt_expectations') (\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_stdev_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.659529}, "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "name": "default__test_expect_column_stdev_to_be_between", "macro_sql": "{% macro default__test_expect_column_stdev_to_be_between(\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) %}\n\n{% set expression %}\nstddev({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.660643}, "macro.dbt_expectations.test_expect_column_mean_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_mean_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "name": "test_expect_column_mean_to_be_between", "macro_sql": "{% test expect_column_mean_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\navg({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.662815}, "macro.dbt_expectations.test_expect_column_max_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_max_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "name": "test_expect_column_max_to_be_between", "macro_sql": "{% test expect_column_max_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmax({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.664952}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "name": "test_expect_column_distinct_count_to_be_greater_than", "macro_sql": "{% test expect_column_distinct_count_to_be_greater_than(model,\n column_name,\n value,\n quote_values=False,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) > {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.666781}, "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "name": "test_expect_column_distinct_values_to_be_in_set", "macro_sql": "{% test expect_column_distinct_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=False,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n unique_set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.669195}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "name": "test_expect_column_distinct_count_to_equal_other_table", "macro_sql": "{% test expect_column_distinct_count_to_equal_other_table(model,\n compare_model,\n column_name,\n compare_column_name,\n row_condition=None,\n compare_row_condition=None\n ) %}\n{%- set expression -%}\ncount(distinct {{ column_name }})\n{%- endset -%}\n{%- set compare_expression -%}\n{%- if compare_column_name -%}\ncount(distinct {{ compare_column_name }})\n{%- else -%}\n{{ expression }}\n{%- endif -%}\n{%- endset -%}\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.671336}, "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "original_file_path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "name": "test_expect_row_values_to_have_data_for_every_n_datepart", "macro_sql": "{%- test expect_row_values_to_have_data_for_every_n_datepart(model,\n date_col,\n date_part=\"day\",\n interval=None,\n row_condition=None,\n exclusion_condition=None,\n test_start_date=None,\n test_end_date=None) -%}\n{% if not execute %}\n {{ return('') }}\n{% endif %}\n\n{% if not test_start_date or not test_end_date %}\n {% set sql %}\n\n select\n min({{ date_col }}) as start_{{ date_part }},\n max({{ date_col }}) as end_{{ date_part }}\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n {% endset %}\n\n {%- set dr = run_query(sql) -%}\n {%- set db_start_date = dr.columns[0].values()[0].strftime('%Y-%m-%d') -%}\n {%- set db_end_date = dr.columns[1].values()[0].strftime('%Y-%m-%d') -%}\n\n{% endif %}\n\n{% if not test_start_date %}\n{% set start_date = db_start_date %}\n{% else %}\n{% set start_date = test_start_date %}\n{% endif %}\n\n\n{% if not test_end_date %}\n{% set end_date = db_end_date %}\n{% else %}\n{% set end_date = test_end_date %}\n{% endif %}\nwith base_dates as (\n\n {{ dbt_date.get_base_dates(start_date=start_date, end_date=end_date, datepart=date_part) }}\n {% if interval %}\n {# \n Filter the date spine created above down to the interval granularity using a modulo operation.\n The number of date_parts after the start_date divided by the integer interval will produce no remainder for the desired intervals, \n e.g. for 2-day interval from a starting Jan 1, 2020:\n params: start_date = '2020-01-01', date_part = 'day', interval = 2\n date spine created above: [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-04, 2020-01-05, ...]\n The first parameter to the `mod` function would be the number of days between the start_date and the spine date, i.e. [0, 1, 2, 3, 4 ...]\n The second parameter to the `mod` function would be the integer interval, i.e. 2\n This modulo operation produces the following remainders: [0, 1, 0, 1, 0, ...]\n Filtering the spine only where this remainder == 0 will return a spine with every other day as desired, i.e. [2020-01-01, 2020-01-03, 2020-01-05, ...]\n #}\n where mod(\n cast({{ dbt_utils.datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ dbt_utils.type_int() }}),\n cast({{interval}} as {{ dbt_utils.type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ dbt_utils.date_trunc(date_part, date_col) }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n\n {% else %}\n {# \n Use a modulo operator to determine the number of intervals that a date_col is away from the interval-date spine \n and subtracts that amount to effectively slice each date_col record into its corresponding spine bucket,\n e.g. given a date_col of with records [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-11, 2020-01-12]\n if we want to slice these dates into their 2-day buckets starting Jan 1, 2020 (start_date = '2020-01-01', date_part='day', interval=2),\n the modulo operation described above will produce these remainders: [0, 1, 0, 0, 1]\n subtracting that number of days from the observations will produce records [2020-01-01, 2020-01-01, 2020-01-03, 2020-01-11, 2020-01-11],\n all of which align with records from the interval-date spine\n #}\n {{dbt_utils.dateadd(\n date_part, \n \"mod(\n cast(\" ~ dbt_utils.datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ dbt_utils.type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ dbt_utils.type_int() ~ \" )\n ) * (-1)\", \n \"cast( \" ~ dbt_utils.date_trunc(date_part, date_col) ~ \" as \" ~ dbt_expectations.type_datetime() ~ \")\"\n )}} as date_{{ date_part }},\n \n {% endif %}\n \n count(*) as row_cnt\n from\n {{ model }} f\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n group by\n date_{{date_part}}\n\n),\n\nfinal as (\n\n select\n cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n case when f.date_{{ date_part }} is null then true else false end as is_missing,\n coalesce(f.row_cnt, 0) as row_cnt\n from\n base_dates d\n left join\n model_data f on cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) = f.date_{{ date_part }}\n)\nselect\n *\nfrom final\nwhere row_cnt = 0\n{% if exclusion_condition %}\n and {{ exclusion_condition }}\n{% endif %}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_date.get_base_dates", "macro.dbt_utils.datediff", "macro.dbt_utils.type_int", "macro.dbt_utils.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.6812449}, "macro.dbt_expectations._get_metric_expression": {"unique_id": "macro.dbt_expectations._get_metric_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "_get_metric_expression", "macro_sql": "{%- macro _get_metric_expression(metric_column, take_logs) -%}\n\n{%- if take_logs %}\n{%- set expr = \"nullif(\" ~ metric_column ~ \", 0)\" -%}\ncoalesce({{ dbt_expectations.log_natural(expr) }}, 0)\n{%- else -%}\ncoalesce({{ metric_column }}, 0)\n{%- endif %}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.log_natural"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.6877}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n period='day',\n lookback_periods=1,\n trend_periods=7,\n test_periods=14,\n sigma_threshold=3,\n sigma_threshold_upper=None,\n sigma_threshold_lower=None,\n take_diffs=true,\n take_logs=true\n ) -%}\n {{ adapter.dispatch('test_expect_column_values_to_be_within_n_moving_stdevs', 'dbt_expectations') (model,\n column_name,\n date_column_name,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.688886}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "default__test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) %}\n\n{%- set sigma_threshold_upper = sigma_threshold_upper if sigma_threshold_upper else sigma_threshold -%}\n{%- set sigma_threshold_lower = sigma_threshold_lower if sigma_threshold_lower else -1 * sigma_threshold -%}\n\nwith metric_values as (\n\n with grouped_metric_values as (\n\n select\n {{ dbt_utils.date_trunc(period, date_column_name) }} as metric_period,\n sum({{ column_name }}) as agg_metric_value\n from\n {{ model }}\n group by\n 1\n\n )\n {%- if take_diffs %}\n , grouped_metric_values_with_priors as (\n\n select\n *,\n lag(agg_metric_value, {{ lookback_periods }}) over(order by metric_period) as prior_agg_metric_value\n from\n grouped_metric_values d\n\n )\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n -\n {{ dbt_expectations._get_metric_expression(\"prior_agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values_with_priors d\n\n {%- else %}\n\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values\n\n {%- endif %}\n\n),\nmetric_moving_calcs as (\n\n select\n *,\n avg(metric_test_value)\n over(order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_average,\n stddev(metric_test_value)\n over(order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_stddev\n from\n metric_values\n\n),\nmetric_sigma as (\n\n select\n *,\n (metric_test_value - metric_test_rolling_average) as metric_test_delta,\n (metric_test_value - metric_test_rolling_average)/nullif(metric_test_rolling_stddev, 0) as metric_test_sigma\n from\n metric_moving_calcs\n\n)\nselect\n *\nfrom\n metric_sigma\nwhere\n\n metric_period >= cast(\n {{ dbt_utils.dateadd(period, -test_periods, dbt_utils.date_trunc(period, dbt_date.now())) }}\n as {{ dbt_utils.type_timestamp() }})\n and\n metric_period < {{ dbt_utils.date_trunc(period, dbt_date.now()) }}\n and\n\n not (\n metric_test_sigma >= {{ sigma_threshold_lower }} and\n metric_test_sigma <= {{ sigma_threshold_upper }}\n )\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_expectations._get_metric_expression", "macro.dbt_utils.dateadd", "macro.dbt_date.now", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.691436}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "name": "test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by=None,\n sigma_threshold=3\n ) -%}\n {{ adapter.dispatch('test_expect_column_values_to_be_within_n_stdevs', 'dbt_expectations') (model, column_name, group_by, sigma_threshold) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.6933608}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "name": "default__test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by,\n sigma_threshold\n ) %}\nwith metric_values as (\n\n {% if group_by -%}\n select\n {{ group_by }} as metric_date,\n sum({{ column_name }}) as {{ column_name }}\n from\n {{ model }}\n group by\n 1\n {%- else -%}\n select\n {{ column_name }} as {{ column_name }}\n from\n {{ model }}\n {%- endif %}\n\n),\nmetric_values_with_statistics as (\n\n select\n *,\n avg({{ column_name }}) over() as {{ column_name }}_average,\n stddev({{ column_name }}) over() as {{ column_name }}_stddev\n from\n metric_values\n\n),\nmetric_values_z_scores as (\n\n select\n *,\n ({{ column_name }} - {{ column_name }}_average)/{{ column_name }}_stddev as {{ column_name }}_sigma\n from\n metric_values_with_statistics\n\n)\nselect\n *\nfrom\n metric_values_z_scores\nwhere\n abs({{ column_name }}_sigma) > {{ sigma_threshold }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.694616}, "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "name": "test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% test expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_select_column_values_to_be_unique_within_record', 'dbt_expectations') (model, column_list, quote_columns, ignore_row_if, row_condition) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.698098}, "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "name": "default__test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% macro default__test_expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns,\n ignore_row_if,\n row_condition\n ) %}\n\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.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_columns ~\"'.'\"\n ) }}\n{% endif %}\n\nwith column_values as (\n\n select\n row_number() over(order by 1) as row_index,\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where 1=1\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n {% if ignore_row_if == \"all_values_are_missing\" %}\n and\n (\n {% for column in columns -%}\n {{ column }} is not null{% if not loop.last %} and {% endif %}\n {%- endfor %}\n )\n {% elif ignore_row_if == \"any_value_is_missing\" %}\n and\n (\n {% for column in columns -%}\n {{ column }} is not null{% if not loop.last %} or {% endif %}\n {%- endfor %}\n )\n {% endif %}\n\n),\nunpivot_columns as (\n\n {% for column in columns %}\n select row_index, '{{ column }}' as column_name, {{ column }} as column_value from column_values\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n\n select\n row_index,\n count(distinct column_value) as column_values\n from unpivot_columns\n group by 1\n having count(distinct column_value) < {{ columns | length }}\n\n)\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.7011032}, "macro.dbt_expectations.test_expect_compound_columns_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_compound_columns_to_be_unique", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "original_file_path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "name": "test_expect_compound_columns_to_be_unique", "macro_sql": "{% test expect_compound_columns_to_be_unique(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) %}\n{% if not column_list %}\n {{ exceptions.raise_compiler_error(\n \"`column_list` must be specified as a list of columns. Got: '\" ~ column_list ~\"'.'\"\n ) }}\n{% endif %}\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for expect_compound_columns_to_be_unique test must be one of [True, False] Got: '\" ~ quote_columns ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set row_condition_ext -%}\n\n{%- if row_condition %}\n {{ row_condition }} and\n{% endif -%}\n\n{%- if ignore_row_if == \"all_values_are_missing\" %}\n (\n {% for column in columns -%}\n {{ column }} is not null{% if not loop.last %} and {% endif %}\n {% endfor %}\n )\n{%- elif ignore_row_if == \"any_value_is_missing\" %}\n (\n {% for column in columns -%}\n {{ column }} is not null{% if not loop.last %} or {% endif %}\n {% endfor %}\n )\n{%- endif -%}\n{%- endset -%}\n\nwith validation_errors as (\n\n select\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\n {% endif %}\n group by\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n having count(*) > 1\n\n)\nselect * from validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.706845}, "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "name": "test_expect_multicolumn_sum_to_equal", "macro_sql": "{% test expect_multicolumn_sum_to_equal(model,\n column_list,\n sum_total,\n group_by=None,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for column in column_list %}\nsum({{ column }}){% if not loop.last %} + {% endif %}\n{% endfor %} = {{ sum_total }}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.708506}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "name": "test_expect_column_pair_values_to_be_equal", "macro_sql": "{% test expect_column_pair_values_to_be_equal(model,\n column_A,\n column_B,\n row_condition=None\n ) %}\n\n{% set operator = \"=\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.7096891}, "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "name": "test_expect_column_pair_values_A_to_be_greater_than_B", "macro_sql": "{% test expect_column_pair_values_A_to_be_greater_than_B(model,\n column_A,\n column_B,\n or_equal=False,\n row_condition=None\n ) %}\n\n{% set operator = \">=\" if or_equal else \">\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.7109902}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "name": "test_expect_column_pair_values_to_be_in_set", "macro_sql": "{% test expect_column_pair_values_to_be_in_set(model,\n column_A,\n column_B,\n value_pairs_set,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for pair in value_pairs_set %}\n{%- if (pair | length) == 2 %}\n({{ column_A }} = {{ pair[0] }} and {{ column_B }} = {{ pair[1] }}){% if not loop.last %} or {% endif %}\n{% else %}\n{{ exceptions.raise_compiler_error(\n \"`value_pairs_set` argument for expect_column_pair_values_to_be_in_set test cannot have more than 2 item per element.\n Got: '\" ~ pair ~ \"'.'\"\n ) }}\n{% endif %}\n{% endfor %}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1662526933.713648}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__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"}, "microsoft_ads_source.account_id": {"unique_id": "microsoft_ads_source.account_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The ID of the account."}, "microsoft_ads_source.account_name": {"unique_id": "microsoft_ads_source.account_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "The name of the account."}, "microsoft_ads_source.account_timezone": {"unique_id": "microsoft_ads_source.account_timezone", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_timezone", "block_contents": "The time zone associated with this account."}, "microsoft_ads_source.ad_distribution": {"unique_id": "microsoft_ads_source.ad_distribution", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_distribution", "block_contents": "The distribution medium associated with this record."}, "microsoft_ads_source.ad_id": {"unique_id": "microsoft_ads_source.ad_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_id", "block_contents": "The ID of the corresponding ad."}, "microsoft_ads_source.ad_group_status": {"unique_id": "microsoft_ads_source.ad_group_status", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.ad_name": {"unique_id": "microsoft_ads_source.ad_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.ad_group_id": {"unique_id": "microsoft_ads_source.ad_group_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID of the corresponding ad group."}, "microsoft_ads_source.ad_group_name": {"unique_id": "microsoft_ads_source.ad_group_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_name", "block_contents": "The name of the corresponding ad group."}, "microsoft_ads_source.ad_status": {"unique_id": "microsoft_ads_source.ad_status", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.ad_type": {"unique_id": "microsoft_ads_source.ad_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.bid_match_type": {"unique_id": "microsoft_ads_source.bid_match_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bid_match_type", "block_contents": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "microsoft_ads_source.campaign_id": {"unique_id": "microsoft_ads_source.campaign_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID of the campaign."}, "microsoft_ads_source.campaign_name": {"unique_id": "microsoft_ads_source.campaign_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_name", "block_contents": "The name of the campaign."}, "microsoft_ads_source.campaign_status": {"unique_id": "microsoft_ads_source.campaign_status", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.campaign_timezone": {"unique_id": "microsoft_ads_source.campaign_timezone", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_timezone", "block_contents": "The time zone associated with this campaign."}, "microsoft_ads_source.campaign_type": {"unique_id": "microsoft_ads_source.campaign_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.clicks": {"unique_id": "microsoft_ads_source.clicks", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "The number of clicks that occurred by the grain of the report."}, "microsoft_ads_source.currency_code": {"unique_id": "microsoft_ads_source.currency_code", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_code", "block_contents": "The currency code associated with spend and, if applicable, other metrics associated with currency."}, "microsoft_ads_source.date_day": {"unique_id": "microsoft_ads_source.date_day", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "date_day", "block_contents": "The date of the performance report."}, "microsoft_ads_source.delivered_match_type": {"unique_id": "microsoft_ads_source.delivered_match_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "delivered_match_type", "block_contents": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "microsoft_ads_source.device_os": {"unique_id": "microsoft_ads_source.device_os", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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'."}, "microsoft_ads_source.device_type": {"unique_id": "microsoft_ads_source.device_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "device_type", "block_contents": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'."}, "microsoft_ads_source.end_date": {"unique_id": "microsoft_ads_source.end_date", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "end_date", "block_contents": "The date in which this ad group will no longer run."}, "microsoft_ads_source.final_url": {"unique_id": "microsoft_ads_source.final_url", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "final_url", "block_contents": "The full URL that the ad links to."}, "microsoft_ads_source.impressions": {"unique_id": "microsoft_ads_source.impressions", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "The number of impressions that occurred by the grain of the report."}, "microsoft_ads_source.is_most_recent_record": {"unique_id": "microsoft_ads_source.is_most_recent_record", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "microsoft_ads_source.keyword_id": {"unique_id": "microsoft_ads_source.keyword_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_id", "block_contents": "The ID of the keyword."}, "microsoft_ads_source.keyword_name": {"unique_id": "microsoft_ads_source.keyword_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_name", "block_contents": "The keyword(s) associated with this record."}, "microsoft_ads_source.keyword_status": {"unique_id": "microsoft_ads_source.keyword_status", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.language": {"unique_id": "microsoft_ads_source.language", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "language", "block_contents": "The language that the associated ad was viewed in."}, "microsoft_ads_source.match_type": {"unique_id": "microsoft_ads_source.match_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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)."}, "microsoft_ads_source.modified_at": {"unique_id": "microsoft_ads_source.modified_at", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "modified_at", "block_contents": "The time each version of the object was last modified, i.e. when that version of the object was 'created'."}, "microsoft_ads_source.network": {"unique_id": "microsoft_ads_source.network", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "network", "block_contents": "The network associated with this record."}, "microsoft_ads_source.search_query": {"unique_id": "microsoft_ads_source.search_query", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "search_query", "block_contents": "The search query string associated with this record."}, "microsoft_ads_source.spend": {"unique_id": "microsoft_ads_source.spend", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "spend", "block_contents": "The amount of spend that occurred by the grain of the report."}, "microsoft_ads_source.start_date": {"unique_id": "microsoft_ads_source.start_date", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "start_date", "block_contents": "The date in which an ad group starts running."}, "microsoft_ads_source.time_zone": {"unique_id": "microsoft_ads_source.time_zone", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "time_zone", "block_contents": "The time zone associated with this record."}, "microsoft_ads_source.top_vs_other": {"unique_id": "microsoft_ads_source.top_vs_other", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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)."}, "google_ads_source._fivetran_id": {"unique_id": "google_ads_source._fivetran_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "google_ads_source._fivetran_synced": {"unique_id": "google_ads_source._fivetran_synced", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "google_ads_source.account_descriptive_name": {"unique_id": "google_ads_source.account_descriptive_name", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_descriptive_name", "block_contents": "The descriptive name of the Customer account."}, "google_ads_source.ad_group_id": {"unique_id": "google_ads_source.ad_group_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID of the AdGroup."}, "google_ads_source.ad_group_name": {"unique_id": "google_ads_source.ad_group_name", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_name", "block_contents": "The name of the AdGroup."}, "google_ads_source.ad_group_status": {"unique_id": "google_ads_source.ad_group_status", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_status", "block_contents": "Status of the ad group."}, "google_ads_source.campaign_id": {"unique_id": "google_ads_source.campaign_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID of the Campaign."}, "google_ads_source.ad_id": {"unique_id": "google_ads_source.ad_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_id", "block_contents": "The ID of the Ad."}, "google_ads_source.account_id": {"unique_id": "google_ads_source.account_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The ID of the Account."}, "google_ads_source.ad_status": {"unique_id": "google_ads_source.ad_status", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_status", "block_contents": "Status of the Ad."}, "google_ads_source.campaign_name": {"unique_id": "google_ads_source.campaign_name", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_name", "block_contents": "The name of the Campaign."}, "google_ads_source.campaign_status": {"unique_id": "google_ads_source.campaign_status", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_status", "block_contents": "Status of the Campaign."}, "google_ads_source.clicks": {"unique_id": "google_ads_source.clicks", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "The number of clicks."}, "google_ads_source.cost": {"unique_id": "google_ads_source.cost", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cost", "block_contents": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period."}, "google_ads_source.date": {"unique_id": "google_ads_source.date", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "date", "block_contents": "The date being reported on."}, "google_ads_source.effective_final_url": {"unique_id": "google_ads_source.effective_final_url", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "effective_final_url", "block_contents": "Effective final URL of the impressions."}, "google_ads_source.external_customer_id": {"unique_id": "google_ads_source.external_customer_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "external_customer_id", "block_contents": "The Customer ID."}, "google_ads_source.impressions": {"unique_id": "google_ads_source.impressions", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "Count of how often your ad has appeared on a search results page or website on the Google Network."}, "google_ads_source.criteria_id": {"unique_id": "google_ads_source.criteria_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "criteria_id", "block_contents": "The Criterion ID."}, "google_ads_source.gcl_id": {"unique_id": "google_ads_source.gcl_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "gcl_id", "block_contents": "The Google Click ID."}, "google_ads_source.criteria": {"unique_id": "google_ads_source.criteria", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "criteria", "block_contents": "Descriptive string for the Criterion."}, "google_ads_source.criteria_destination_url": {"unique_id": "google_ads_source.criteria_destination_url", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "criteria_destination_url", "block_contents": "Destination URL of the criterion that triggered ads."}, "google_ads_source.criteria_type": {"unique_id": "google_ads_source.criteria_type", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "criteria_type", "block_contents": "The type of the Criterion."}, "google_ads_source.base_url": {"unique_id": "google_ads_source.base_url", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "base_url", "block_contents": "The base URL of the ad, extracted from the `final_urls`."}, "google_ads_source.url_host": {"unique_id": "google_ads_source.url_host", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "url_host", "block_contents": "The URL host of the ad, extracted from the `final_urls`."}, "google_ads_source.url_path": {"unique_id": "google_ads_source.url_path", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "url_path", "block_contents": "The URL path of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_source": {"unique_id": "google_ads_source.utm_source", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_source", "block_contents": "The utm_source parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_medium": {"unique_id": "google_ads_source.utm_medium", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_medium", "block_contents": "The utm_medium parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_campaign": {"unique_id": "google_ads_source.utm_campaign", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_campaign", "block_contents": "The utm_campaign parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_content": {"unique_id": "google_ads_source.utm_content", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_content", "block_contents": "The utm_content parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_term": {"unique_id": "google_ads_source.utm_term", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_term", "block_contents": "The utm_term parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.updated_at": {"unique_id": "google_ads_source.updated_at", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "updated_at", "block_contents": "Timestamp of when the record was last updated in Google Ads."}, "google_ads_source.ad_type": {"unique_id": "google_ads_source.ad_type", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_type", "block_contents": "The type of the ad in Google Ads."}, "google_ads_source.ad_group_type": {"unique_id": "google_ads_source.ad_group_type", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_type", "block_contents": "The type of the ad group in Google Ads."}, "google_ads_source.is_most_recent_record": {"unique_id": "google_ads_source.is_most_recent_record", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "google_ads_source.ad_network_type": {"unique_id": "google_ads_source.ad_network_type", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_network_type", "block_contents": "The Google Ad network type used across the account."}, "google_ads_source.device": {"unique_id": "google_ads_source.device", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "device", "block_contents": "Account ad performance per unique device where the ads were served."}, "ad_reporting.account_id": {"unique_id": "ad_reporting.account_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The ID representing the account."}, "ad_reporting.account_name": {"unique_id": "ad_reporting.account_name", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "The name of the account, if present in the source data."}, "ad_reporting.ad_group_id": {"unique_id": "ad_reporting.ad_group_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID representing the ad group, if present in the source data."}, "ad_reporting.ad_group_name": {"unique_id": "ad_reporting.ad_group_name", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_name", "block_contents": "The name of the ad group, if present in the source data."}, "ad_reporting.ad_id": {"unique_id": "ad_reporting.ad_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_id", "block_contents": "The ID representing the ad, if present in the source data."}, "ad_reporting.ad_name": {"unique_id": "ad_reporting.ad_name", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_name", "block_contents": "The name of the ad, if present in the source data."}, "ad_reporting.base_url": {"unique_id": "ad_reporting.base_url", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "base_url", "block_contents": "The base url of the ad."}, "ad_reporting.campaign_id": {"unique_id": "ad_reporting.campaign_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID representing the campaign, if present in the source data."}, "ad_reporting.campaign_name": {"unique_id": "ad_reporting.campaign_name", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_name", "block_contents": "The name of the campaign, if present in the source data."}, "ad_reporting.clicks": {"unique_id": "ad_reporting.clicks", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "The count of clicks."}, "ad_reporting.date_day": {"unique_id": "ad_reporting.date_day", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "date_day", "block_contents": "The date of the report."}, "ad_reporting.impressions": {"unique_id": "ad_reporting.impressions", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "The count of impressions."}, "ad_reporting.keyword_id": {"unique_id": "ad_reporting.keyword_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_id", "block_contents": "The ID representing the keyword, if present in the source data."}, "ad_reporting.keyword_match_type": {"unique_id": "ad_reporting.keyword_match_type", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_match_type", "block_contents": "The keyword match type associated with this record."}, "ad_reporting.keyword_text": {"unique_id": "ad_reporting.keyword_text", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_text", "block_contents": "The keyword text."}, "ad_reporting.platform": {"unique_id": "ad_reporting.platform", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "platform", "block_contents": "The ad platform associated with this record."}, "ad_reporting.search_match_type": {"unique_id": "ad_reporting.search_match_type", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "search_match_type", "block_contents": "The search match type associated with this record."}, "ad_reporting.search_query": {"unique_id": "ad_reporting.search_query", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "search_query", "block_contents": "The search query text."}, "ad_reporting.spend": {"unique_id": "ad_reporting.spend", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "spend", "block_contents": "The cost of the ads."}, "ad_reporting.url_host": {"unique_id": "ad_reporting.url_host", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "url_host", "block_contents": "The URL host of the ad."}, "ad_reporting.url_path": {"unique_id": "ad_reporting.url_path", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "url_path", "block_contents": "The URL path of the ad."}, "ad_reporting.utm_campaign": {"unique_id": "ad_reporting.utm_campaign", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_campaign", "block_contents": "The utm_campaign parameter of the ad."}, "ad_reporting.utm_content": {"unique_id": "ad_reporting.utm_content", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_content", "block_contents": "The utm_content parameter of the ad."}, "ad_reporting.utm_medium": {"unique_id": "ad_reporting.utm_medium", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_medium", "block_contents": "The utm_medium parameter of the ad."}, "ad_reporting.utm_source": {"unique_id": "ad_reporting.utm_source", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_source", "block_contents": "The utm_source parameter of the ad."}, "ad_reporting.utm_term": {"unique_id": "ad_reporting.utm_term", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_term", "block_contents": "The utm_term parameter of the ad."}, "pinterest_source._fivetran_synced": {"unique_id": "pinterest_source._fivetran_synced", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "pinterest_source.is_most_recent_record": {"unique_id": "pinterest_source.is_most_recent_record", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "pinterest_source.date_day": {"unique_id": "pinterest_source.date_day", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "date_day", "block_contents": "The performance date of the record."}, "pinterest_source.ad_group_id": {"unique_id": "pinterest_source.ad_group_id", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID of the related Ad group."}, "pinterest_source.pin_promotion_id": {"unique_id": "pinterest_source.pin_promotion_id", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "pin_promotion_id", "block_contents": "The ID of the related Pin promotion."}, "pinterest_source.campaign_id": {"unique_id": "pinterest_source.campaign_id", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID of the related Campaign."}, "pinterest_source.advertiser_id": {"unique_id": "pinterest_source.advertiser_id", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "advertiser_id", "block_contents": "The ID of the related Advertiser."}, "pinterest_source.impressions": {"unique_id": "pinterest_source.impressions", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "The number of paid and earned impressions that occurred on the day of the record."}, "pinterest_source.clicks": {"unique_id": "pinterest_source.clicks", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "The number of paid and earned clicks that occurred on the day of the record."}, "pinterest_source.spend": {"unique_id": "pinterest_source.spend", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "spend", "block_contents": "The amount of spend that occurred on the day of the record."}, "pinterest_source.updated_at": {"unique_id": "pinterest_source.updated_at", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "updated_at", "block_contents": "Timestamp of when a record was last updated."}, "pinterest_source.created_at": {"unique_id": "pinterest_source.created_at", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of when a record was created."}, "pinterest_source.spend_in_micro_dollar": {"unique_id": "pinterest_source.spend_in_micro_dollar", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "spend_in_micro_dollar", "block_contents": "The amount of spend in micro dollars that occurred on the day of the record."}, "pinterest_source.clickthrough_1": {"unique_id": "pinterest_source.clickthrough_1", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clickthrough_1", "block_contents": "The number of paid pin clicks that occurred on the day of the record."}, "pinterest_source.clickthrough_2": {"unique_id": "pinterest_source.clickthrough_2", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clickthrough_2", "block_contents": "The number of earned outbound clicks that occurred on the day of the record."}, "pinterest_source.impression_1": {"unique_id": "pinterest_source.impression_1", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impression_1", "block_contents": "The number of paid pin impressions that occurred on the day of the record."}, "pinterest_source.impression_2": {"unique_id": "pinterest_source.impression_2", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impression_2", "block_contents": "The number of earned pin impressions that occurred on the day of the record."}, "facebook_ads_source._fivetran_synced": {"unique_id": "facebook_ads_source._fivetran_synced", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "facebook_ads_source.is_most_recent_record": {"unique_id": "facebook_ads_source.is_most_recent_record", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "facebook_ads_source.updated_time": {"unique_id": "facebook_ads_source.updated_time", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "updated_time", "block_contents": "The timestamp of the last update of a record."}, "snapchat_ads_source._fivetran_synced": {"unique_id": "snapchat_ads_source._fivetran_synced", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "snapchat_ads_source.is_most_recent_record": {"unique_id": "snapchat_ads_source.is_most_recent_record", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "twitter_ads_source._fivetran_synced": {"unique_id": "twitter_ads_source._fivetran_synced", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "twitter_ads_source.created_at": {"unique_id": "twitter_ads_source.created_at", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "The timestamp the account was created."}, "twitter_ads_source.updated_at": {"unique_id": "twitter_ads_source.updated_at", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "updated_at", "block_contents": "The timestamp the account was last updated."}, "twitter_ads_source.deleted": {"unique_id": "twitter_ads_source.deleted", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deleted", "block_contents": "Whether the record has been deleted or not."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.twitter_ads.twitter_ads__keyword_report": [{"raw_sql": "{{ 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.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,\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 left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n\n {{ dbt_utils.group_by(n=10) }}\n)\n\nselect *\nfrom final", "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__keyword_report"], "unique_id": "model.twitter_ads.twitter_ads__keyword_report", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__keyword_report.sql", "original_file_path": "models/twitter_ads__keyword_report.sql", "name": "twitter_ads__keyword_report", "alias": "twitter_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "1c8888a6aaaf35054f3d6b44a16c85dadcae17843e1ccd87378b0c398733ce58"}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"], ["stg_twitter_ads__line_item_history"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": false}, "created_at": 1662526935.48627, "config_call_dict": {"enabled": false}}], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report": [{"raw_sql": "{{ 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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.date_trunc('day', 'date') }} as date_day,\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", "resource_type": "model", "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.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_keywords_report"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__line_item_keywords_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_keywords_report.sql", "name": "stg_twitter_ads__line_item_keywords_report", "alias": "stg_twitter_ads__line_item_keywords_report", "checksum": {"name": "sha256", "checksum": "3c634677bfa8faba79f7d6e39b41c305dd09e975dfd7731c433d42a5edec3717"}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report_tmp"], ["stg_twitter_ads__line_item_keywords_report_tmp"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": false}, "created_at": 1662526938.9057631, "config_call_dict": {"enabled": false}}], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp": [{"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__twitter_ads_enabled','twitter_ads__using_keywords'])) }}\n\nselect * \nfrom {{ var('line_item_keywords_report') }}", "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_keywords_report_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__line_item_keywords_report_tmp", "alias": "stg_twitter_ads__line_item_keywords_report_tmp", "checksum": {"name": "sha256", "checksum": "114060cd4737b070ccbc5aef04da886811de6b4bec7e6246e7e36df4f115d55e"}, "tags": [], "refs": [], "sources": [["twitter_ads", "line_item_keywords_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": false}, "created_at": 1662526939.1868942, "config_call_dict": {"enabled": false}}], "source.twitter_ads_source.twitter_ads.line_item_keywords_report": [{"fqn": ["twitter_ads_source", "twitter_ads", "line_item_keywords_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_keywords_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "line_item_keywords_report", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_keywords_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "segment": {"name": "segment", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false}, "patch_path": null, "unrendered_config": {"enabled": false}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_keywords_report_data`", "created_at": 1662526943.220215}]}, "parent_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_report_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.twitter_account_report_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.pinterest_ads_pin_promotion_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_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_stats_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.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.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.facebook_ads_campaign_history_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.pinterest_ads_campaign_report_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.pinterest_ads_keyword_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.snapchat_campaign_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.snapchat_ad_squad_hourly_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.pinterest_ads_pin_promotion_report_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.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.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_stats_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.pinterest_ads_advertiser_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_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__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__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__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__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__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_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_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_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__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__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__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.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.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.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "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__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__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__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__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"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": ["source.linkedin_source.linkedin.ad_analytics_by_creative"], "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": ["source.linkedin_source.linkedin.campaign_history"], "model.linkedin_source.stg_linkedin_ads__account_history_tmp": ["source.linkedin_source.linkedin.account_history"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": ["source.linkedin_source.linkedin.campaign_group_history"], "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": ["source.linkedin_source.linkedin.creative_history"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": ["source.linkedin_source.linkedin.ad_analytics_by_campaign"], "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__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__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_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__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__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_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__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_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__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_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.int_ad_reporting__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.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.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.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.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.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.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.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.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.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.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__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__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__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__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_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__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__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_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_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__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__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__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__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__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_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__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__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__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__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__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__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_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_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__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__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__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__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__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__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__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__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_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"], "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_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_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_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__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_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__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__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_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__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_source.stg_microsoft_ads__keyword_daily_report"], "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__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_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__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__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__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__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__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__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__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_account_id__modified_at.5975327479": ["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_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a": ["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_ad_group_id__modified_at.12004c9de0": ["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_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.8792b4adf4": ["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_ad_id__modified_at.1f05b4ee6f": ["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_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.80e8146841": ["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_campaign_id__modified_at.d2a9279427": ["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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95": ["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_keyword_id__modified_at.e1c525286c": ["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_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.c6f46d202a": ["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_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.03cf031d0c": ["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_advertiser_id__date_day.d298bb3cf9": ["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_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb": ["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_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e": ["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_campaign_id__advertiser_id__date_day.03c4f86b19": ["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.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47": ["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_date_day__campaign_id__placement__account_id.2b09fa5421": ["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_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a": ["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_date_day__account_id__placement.a29cf85a4f": ["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_line_item_id.4982336b04": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword.7f254683d7": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_placement.1cf3231796": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id.66e2c0d578": [], "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_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082": ["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.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff": ["model.twitter_ads.twitter_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_pin_promotion_id.0da711ad6a": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8": ["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_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d": ["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_campaign_id__advertiser_id__date_day.b5752d5279": ["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_advertiser_id__date_day.990badbc11": ["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_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d": ["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_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3": ["model.pinterest.pinterest_ads__pin_promotion_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_ad_id__ad_group_id__date_day.a59b8e007f": ["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_account_id__date_day.c52089771e": ["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_ad_group_id__date_day.7c8e1c1a2f": ["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_ad_id__ad_group_id__date_day.fe37ea1a7b": ["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_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469": ["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_ad_group_id__criterion_id__date_day.214ff3497d": ["model.google_ads.google_ads__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_date_day__creative_id.973a01e410": ["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_date_day__campaign_id.b03f3dc81d": ["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__creative_history_version_tag.d3f8e73227": ["model.linkedin_source.stg_linkedin_ads__creative_history"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66": ["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_version_tag__campaign_id.2d20780793": ["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_last_modified_at__campaign_group_id.e761ddb4da": ["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_account_id__version_tag.9a655993ce": ["model.linkedin_source.stg_linkedin_ads__account_history"], "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_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7": ["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_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738": ["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_date_day__account_id__campaign_id__ad_set_id.3dd4da872f": ["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_date_day__account_id__campaign_id.7cd75107e6": ["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_date_day__account_id.5a94423e40": ["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__fivetran_id__key__type.ba044777d3": ["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_ad_account_id__date_day.da5545b8e6": ["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_ad_id__date_day.68c2c0de57": ["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_campaign_id__date_day.dfc5f7da4e": ["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_ad_squad_id__date_day.027a518f3c": ["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.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be": ["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_account_id__updated_at.19f35742f1": ["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_ad_group_id__updated_at.096e8da5fd": ["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_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7": ["model.google_ads_source.stg_google_ads__ad_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b": ["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_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451": ["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_campaign_id__updated_at.8bf2733e86": ["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_criterion_id__ad_group_id__updated_at.197bbc6816": ["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_ad_group_id__device__ad_network_type__date_day.ed55af6020": ["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_campaign_id__ad_network_type__device__date_day.69600f7d45": ["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_keyword_id__date_day.8f15198e68": ["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_account_id__device__ad_network_type__date_day.3019f8a860": ["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_organization_id__campaign_id__ad_group_id__date_day.19d180bab9": ["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_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1": ["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_organization_id__campaign_id__date_day.647e56213f": ["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_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13": ["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_organization_id__date_day.8bc84fccc3": ["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_search_term_text__date_day.e60fe79ec4": ["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_platform__date_day__account_id.1cadcf1583": ["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_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a": ["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_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55": ["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_platform__date_day__campaign_id__account_id.4b3426da0f": ["model.ad_reporting.ad_reporting__campaign_report"], "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f": ["model.ad_reporting.ad_reporting__keyword_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a": ["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_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf": ["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_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.cd216b1424": ["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_ad_group_id__modified_at.84af14c83b": ["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_ad_group_id__date_day.a0fcc4e33c": ["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_ad_id__modified_at.38599b8cba": ["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_ad_id__date_day__ad_group_id.0d8d23c516": ["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_campaign_id__modified_at.317f970af9": ["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_campaign_id__date_day.bad41b0481": ["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_keyword_id__modified_at.7b06162d24": ["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_keyword_id__date_day.9f0099cff8": ["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_organization_id.8647048f7a": ["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__fivetran_id__date_day.aad2a48344": ["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_ad_group_id___fivetran_synced.1132e1f339": ["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_campaign_id___fivetran_synced.eff7196b87": ["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__fivetran_synced__pin_promotion_id.8e9ab31ea9": ["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_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024": ["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_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e": ["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_updated_at__advertiser_id.94e8f4de4b": ["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_date_day__advertiser_id.e92ce8a9c0": ["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_date_day__campaign_id__advertiser_id.ff47cb8abc": ["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_keyword_id__ad_group_id___fivetran_synced.d122faa877": ["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_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "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.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_ad_group_id__updated_at.cec78c01de": ["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_ad_id__updated_at.66b86b4dd1": ["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_campaign_id__updated_at.72bf07011b": ["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_ad_id__stat_time_hour.e70f8cef6d": ["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_ad_group_id__stat_time_hour.1aeaeb71ad": ["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_campaign_id__stat_time_hour.8e4a1e4b34": ["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_account_id___fivetran_synced.f9b4d28fa2": ["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_ad_id__updated_at.2922c18b58": ["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_ad_set_id__updated_at.0a60ad0fef": ["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_campaign_id__updated_at.7437b392c2": ["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_creative_id___fivetran_synced.69ddc26562": ["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_date_day__ad_id__account_id.bd909529e7": ["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_ad_account_id___fivetran_synced.cd4fd6b0be": ["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_ad_id___fivetran_synced.f84924f13b": ["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_ad_id__date_hour.1a4ef6182a": ["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_ad_squad_id___fivetran_synced.200b225a27": ["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_ad_squad_id__date_hour.774a407e69": ["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_campaign_id___fivetran_synced.31b9fb6777": ["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_campaign_id__date_hour.64293afa9c": ["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_creative_id___fivetran_synced.c6f6c78b99": ["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_creative_id__param_key__updated_at.cc3fa6acbe": ["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_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f": ["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_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3": ["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_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686": ["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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b": ["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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9": ["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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602": ["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_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7": ["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_account_id__updated_timestamp.2725b1ff40": ["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_campaign_id__updated_timestamp.c7054e5b55": ["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_line_item_id__updated_timestamp.b12672e022": ["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_promoted_tweet_id__updated_timestamp.dddc4a21ef": ["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_date_day__promoted_tweet_id__placement.7028206273": ["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_index__tweet_id.eab5b85d74": ["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_date_day__campaign_id__placement.71102d8fdb": ["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_date_day__line_item_id__placement.251e077e6b": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_line_item_id.e4f3fa2e5c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword.02bb211fa0": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_placement.f5bb738cac": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement.c47c820cc3": [], "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.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95": ["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_date_day__account_id.a2dcede91c": ["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_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3": ["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_date_day__campaign_group_id__account_id.f60989a7a6": ["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_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f": ["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.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d": ["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.linkedin_source.linkedin.ad_analytics_by_creative": [], "source.linkedin_source.linkedin.creative_history": [], "source.linkedin_source.linkedin.campaign_history": [], "source.linkedin_source.linkedin.campaign_group_history": [], "source.linkedin_source.linkedin.account_history": [], "source.linkedin_source.linkedin.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": []}, "child_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_report_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.twitter_account_report_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.pinterest_ads_pin_promotion_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_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_stats_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.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.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.facebook_ads_campaign_history_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.pinterest_ads_campaign_report_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.pinterest_ads_keyword_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.snapchat_campaign_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.snapchat_ad_squad_hourly_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.pinterest_ads_pin_promotion_report_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.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.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_stats_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.pinterest_ads_advertiser_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_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_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a", "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_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.03cf031d0c", "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", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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.c6f46d202a", "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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95", "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_keyword_id__modified_at.e1c525286c", "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_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.8792b4adf4", "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_ad_group_id__modified_at.12004c9de0", "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_ad_id__modified_at.1f05b4ee6f", "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_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.80e8146841", "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_account_id__modified_at.5975327479", "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_campaign_id__modified_at.d2a9279427", "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__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__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__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__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__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_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__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_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__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__campaign_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "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_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e", "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_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47", "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "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_campaign_id__advertiser_id__date_day.03c4f86b19", "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_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb", "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_advertiser_id__date_day.d298bb3cf9", "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_date_day__account_id__placement.a29cf85a4f", "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_date_day__campaign_id__placement__account_id.2b09fa5421", "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_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff", "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_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082", "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_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a", "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.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_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8", "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "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_campaign_id__advertiser_id__date_day.b5752d5279", "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_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d", "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_advertiser_id__date_day.990badbc11", "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_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3", "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_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d", "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.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_ad_group_id__criterion_id__date_day.214ff3497d", "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_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469", "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_ad_id__ad_group_id__date_day.a59b8e007f", "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_ad_id__ad_group_id__date_day.fe37ea1a7b", "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_ad_group_id__date_day.7c8e1c1a2f", "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_account_id__date_day.c52089771e", "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66", "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474", "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227"], "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_version_tag__campaign_id.2d20780793", "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_date_day__campaign_id.b03f3dc81d", "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_last_modified_at__campaign_group_id.e761ddb4da", "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_account_id__version_tag.9a655993ce", "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_date_day__creative_id.973a01e410", "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__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__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__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__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__creative_history"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "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_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7", "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__fivetran_id__key__type.ba044777d3", "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_date_day__account_id__campaign_id.7cd75107e6", "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_date_day__account_id.5a94423e40", "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_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738", "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_date_day__account_id__campaign_id__ad_set_id.3dd4da872f", "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_ad_id__date_day.68c2c0de57", "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_ad_id__date_day.54edc1b2be", "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "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_ad_account_id__date_day.da5545b8e6", "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_ad_squad_id__date_day.027a518f3c", "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_campaign_id__date_day.dfc5f7da4e", "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_ad_group_id__device__ad_network_type__date_day.ed55af6020", "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_account_id__device__ad_network_type__date_day.3019f8a860", "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_ad_group_id__updated_at.096e8da5fd", "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_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b", "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_keyword_id__date_day.8f15198e68", "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_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451", "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_criterion_id__ad_group_id__updated_at.197bbc6816", "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_campaign_id__ad_network_type__device__date_day.69600f7d45", "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_campaign_id__updated_at.8bf2733e86", "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_account_id__updated_at.19f35742f1", "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__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__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__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__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__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_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__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__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__ad_history"], "model.google_ads_source.stg_google_ads__account_history_tmp": ["model.google_ads_source.stg_google_ads__account_history", "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_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1", "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_organization_id__campaign_id__ad_group_id__date_day.19d180bab9", "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_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13", "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_search_term_text__date_day.e60fe79ec4", "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_organization_id__campaign_id__date_day.647e56213f", "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_organization_id__date_day.8bc84fccc3", "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_platform__date_day__campaign_id__account_id.4b3426da0f", "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_platform__date_day__account_id.1cadcf1583", "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_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a", "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_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf", "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb"], "model.ad_reporting.ad_reporting__ad_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55", "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_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.cd216b1424", "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_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a", "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f"], "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_campaign_id__modified_at.317f970af9", "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_ad_id__date_day__ad_group_id.0d8d23c516", "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_campaign_id__date_day.bad41b0481", "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_organization_id.8647048f7a", "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_keyword_id__date_day.9f0099cff8", "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_keyword_id__modified_at.7b06162d24", "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__fivetran_id__date_day.aad2a48344", "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_ad_group_id__modified_at.84af14c83b", "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_ad_id__modified_at.38599b8cba", "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_ad_group_id__date_day.a0fcc4e33c", "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__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__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__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_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_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__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__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__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__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.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__fivetran_synced__pin_promotion_id.8e9ab31ea9", "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_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13", "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_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e", "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_campaign_id___fivetran_synced.eff7196b87", "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_date_day__advertiser_id.e92ce8a9c0", "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_updated_at__advertiser_id.94e8f4de4b", "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_date_day__campaign_id__advertiser_id.ff47cb8abc", "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_keyword_id__ad_group_id___fivetran_synced.d122faa877", "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_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024", "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_ad_group_id___fivetran_synced.1132e1f339", "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__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__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__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__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__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__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__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__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__ad_group_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "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_campaign_id__stat_time_hour.8e4a1e4b34", "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_ad_group_id__stat_time_hour.1aeaeb71ad", "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_ad_group_id__updated_at.cec78c01de", "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_ad_id__stat_time_hour.e70f8cef6d", "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.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def", "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66"], "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_ad_id__updated_at.66b86b4dd1", "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_campaign_id__updated_at.72bf07011b", "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_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_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__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__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__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__campaign_history"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser", "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_date_day__ad_id__account_id.bd909529e7", "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_creative_id___fivetran_synced.69ddc26562", "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_campaign_id__updated_at.7437b392c2", "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_account_id___fivetran_synced.f9b4d28fa2", "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_ad_id__updated_at.2922c18b58", "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_ad_set_id__updated_at.0a60ad0fef", "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__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__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__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__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__creative_history"], "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__account_history", "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_ad_squad_id__date_hour.774a407e69", "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_ad_id___fivetran_synced.f84924f13b", "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_ad_squad_id___fivetran_synced.200b225a27", "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_ad_id__date_hour.1a4ef6182a", "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_creative_id___fivetran_synced.c6f6c78b99", "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_creative_id__param_key__updated_at.cc3fa6acbe", "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_ad_account_id___fivetran_synced.cd4fd6b0be", "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_campaign_id__date_hour.64293afa9c", "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_campaign_id___fivetran_synced.31b9fb6777", "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__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_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__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__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__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__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_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__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.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_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686", "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_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3", "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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9", "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_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7", "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_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f", "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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602", "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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b", "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_date_day__campaign_id__placement.71102d8fdb", "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_line_item_id__updated_timestamp.b12672e022", "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_date_day__line_item_id__placement.251e077e6b", "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_campaign_id__updated_timestamp.c7054e5b55", "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_date_day__promoted_tweet_id__placement.7028206273", "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.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd", "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95"], "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_account_id__updated_timestamp.2725b1ff40", "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_index__tweet_id.eab5b85d74", "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_promoted_tweet_id__updated_timestamp.dddc4a21ef", "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_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__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__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__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_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__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__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__account_history"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "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_date_day__campaign_group_id__account_id.f60989a7a6", "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_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f", "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_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3", "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_date_day__account_id.a2dcede91c", "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_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d", "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_account_id__modified_at.5975327479": [], "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_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a": [], "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_ad_group_id__modified_at.12004c9de0": [], "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_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.8792b4adf4": [], "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_ad_id__modified_at.1f05b4ee6f": [], "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_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.80e8146841": [], "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_campaign_id__modified_at.d2a9279427": [], "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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95": [], "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_keyword_id__modified_at.e1c525286c": [], "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_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.c6f46d202a": [], "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_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.03cf031d0c": [], "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_advertiser_id__date_day.d298bb3cf9": [], "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_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb": [], "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_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e": [], "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_campaign_id__advertiser_id__date_day.03c4f86b19": [], "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.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47": [], "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_date_day__campaign_id__placement__account_id.2b09fa5421": [], "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_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a": [], "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_date_day__account_id__placement.a29cf85a4f": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_line_item_id.4982336b04": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword.7f254683d7": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_placement.1cf3231796": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id.66e2c0d578": [], "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_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082": [], "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.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff": [], "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": [], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8": [], "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_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d": [], "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_campaign_id__advertiser_id__date_day.b5752d5279": [], "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_advertiser_id__date_day.990badbc11": [], "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_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d": [], "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_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3": [], "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_ad_id__ad_group_id__date_day.a59b8e007f": [], "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_account_id__date_day.c52089771e": [], "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_ad_group_id__date_day.7c8e1c1a2f": [], "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_ad_id__ad_group_id__date_day.fe37ea1a7b": [], "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_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469": [], "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_ad_group_id__criterion_id__date_day.214ff3497d": [], "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_date_day__creative_id.973a01e410": [], "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_date_day__campaign_id.b03f3dc81d": [], "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": [], "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66": [], "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_version_tag__campaign_id.2d20780793": [], "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_last_modified_at__campaign_group_id.e761ddb4da": [], "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_account_id__version_tag.9a655993ce": [], "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_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7": [], "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_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738": [], "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_date_day__account_id__campaign_id__ad_set_id.3dd4da872f": [], "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_date_day__account_id__campaign_id.7cd75107e6": [], "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_date_day__account_id.5a94423e40": [], "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__fivetran_id__key__type.ba044777d3": [], "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_ad_account_id__date_day.da5545b8e6": [], "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_ad_id__date_day.68c2c0de57": [], "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_campaign_id__date_day.dfc5f7da4e": [], "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_ad_squad_id__date_day.027a518f3c": [], "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.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be": [], "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_account_id__updated_at.19f35742f1": [], "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_ad_group_id__updated_at.096e8da5fd": [], "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": [], "test.google_ads_source.dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b": [], "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_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451": [], "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_campaign_id__updated_at.8bf2733e86": [], "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_criterion_id__ad_group_id__updated_at.197bbc6816": [], "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_ad_group_id__device__ad_network_type__date_day.ed55af6020": [], "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_campaign_id__ad_network_type__device__date_day.69600f7d45": [], "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_keyword_id__date_day.8f15198e68": [], "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_account_id__device__ad_network_type__date_day.3019f8a860": [], "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_organization_id__campaign_id__ad_group_id__date_day.19d180bab9": [], "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_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1": [], "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_organization_id__campaign_id__date_day.647e56213f": [], "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_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13": [], "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_organization_id__date_day.8bc84fccc3": [], "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_search_term_text__date_day.e60fe79ec4": [], "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_platform__date_day__account_id.1cadcf1583": [], "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_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a": [], "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_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55": [], "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_platform__date_day__campaign_id__account_id.4b3426da0f": [], "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a": [], "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_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf": [], "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_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.cd216b1424": [], "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_ad_group_id__modified_at.84af14c83b": [], "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_ad_group_id__date_day.a0fcc4e33c": [], "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_ad_id__modified_at.38599b8cba": [], "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_ad_id__date_day__ad_group_id.0d8d23c516": [], "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_campaign_id__modified_at.317f970af9": [], "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_campaign_id__date_day.bad41b0481": [], "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_keyword_id__modified_at.7b06162d24": [], "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_keyword_id__date_day.9f0099cff8": [], "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_organization_id.8647048f7a": [], "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__fivetran_id__date_day.aad2a48344": [], "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_ad_group_id___fivetran_synced.1132e1f339": [], "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_campaign_id___fivetran_synced.eff7196b87": [], "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__fivetran_synced__pin_promotion_id.8e9ab31ea9": [], "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_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024": [], "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_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e": [], "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_updated_at__advertiser_id.94e8f4de4b": [], "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_date_day__advertiser_id.e92ce8a9c0": [], "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_date_day__campaign_id__advertiser_id.ff47cb8abc": [], "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_keyword_id__ad_group_id___fivetran_synced.d122faa877": [], "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_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13": [], "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": [], "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_ad_group_id__updated_at.cec78c01de": [], "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_ad_id__updated_at.66b86b4dd1": [], "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_campaign_id__updated_at.72bf07011b": [], "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_ad_id__stat_time_hour.e70f8cef6d": [], "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_ad_group_id__stat_time_hour.1aeaeb71ad": [], "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_campaign_id__stat_time_hour.8e4a1e4b34": [], "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_account_id___fivetran_synced.f9b4d28fa2": [], "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_ad_id__updated_at.2922c18b58": [], "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_ad_set_id__updated_at.0a60ad0fef": [], "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_campaign_id__updated_at.7437b392c2": [], "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_creative_id___fivetran_synced.69ddc26562": [], "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_date_day__ad_id__account_id.bd909529e7": [], "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_ad_account_id___fivetran_synced.cd4fd6b0be": [], "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_ad_id___fivetran_synced.f84924f13b": [], "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_ad_id__date_hour.1a4ef6182a": [], "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_ad_squad_id___fivetran_synced.200b225a27": [], "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_ad_squad_id__date_hour.774a407e69": [], "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_campaign_id___fivetran_synced.31b9fb6777": [], "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_campaign_id__date_hour.64293afa9c": [], "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_creative_id___fivetran_synced.c6f6c78b99": [], "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_creative_id__param_key__updated_at.cc3fa6acbe": [], "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_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f": [], "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_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3": [], "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_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686": [], "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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b": [], "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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9": [], "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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602": [], "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_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7": [], "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_account_id__updated_timestamp.2725b1ff40": [], "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_campaign_id__updated_timestamp.c7054e5b55": [], "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_line_item_id__updated_timestamp.b12672e022": [], "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_promoted_tweet_id__updated_timestamp.dddc4a21ef": [], "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_date_day__promoted_tweet_id__placement.7028206273": [], "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_index__tweet_id.eab5b85d74": [], "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_date_day__campaign_id__placement.71102d8fdb": [], "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_date_day__line_item_id__placement.251e077e6b": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_line_item_id.e4f3fa2e5c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword.02bb211fa0": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_placement.f5bb738cac": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement.c47c820cc3": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": [], "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95": [], "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_date_day__account_id.a2dcede91c": [], "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_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3": [], "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_date_day__campaign_group_id__account_id.f60989a7a6": [], "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_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f": [], "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": [], "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d": [], "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.linkedin_source.linkedin.ad_analytics_by_creative": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"], "source.linkedin_source.linkedin.creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp"], "source.linkedin_source.linkedin.campaign_history": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"], "source.linkedin_source.linkedin.campaign_group_history": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"], "source.linkedin_source.linkedin.account_history": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp"], "source.linkedin_source.linkedin.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"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2022-11-08T22:16:02.334490Z", "invocation_id": "bdca839e-605b-42f7-a59a-9356b4dce839", "env": {}, "project_id": "9bf57d857f8bb3abf75f1b334ad30f3c", "user_id": "535a716f-60c0-47b9-9763-5e1b450166b6", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_history_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_line_item_history_data.csv", "original_file_path": "seeds/twitter_line_item_history_data.csv", "name": "twitter_line_item_history_data", "alias": "twitter_line_item_history_data", "checksum": {"name": "sha256", "checksum": "daa4cbbaf3f09ccdc7dea309513ca09e42782e7b7734d91f9c93e8a838e7486f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.473208, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_history_data`"}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_keyword_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_keyword_stats_data.csv", "original_file_path": "seeds/google_ads_keyword_stats_data.csv", "name": "google_ads_keyword_stats_data", "alias": "google_ads_keyword_stats_data", "checksum": {"name": "sha256", "checksum": "e4745703dd19dabf77a7df047ced6c1c56966ad8552d2f67676bcfd4ff36c94f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.4896839, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_keyword_stats_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_ad_group_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_ad_group_report_data.csv", "original_file_path": "seeds/pinterest_ads_ad_group_report_data.csv", "name": "pinterest_ads_ad_group_report_data", "alias": "pinterest_ads_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "6451df695a92aca87f55fdc197110c9e91d5b1663808905afa2f031527fa3947"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.4938502, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_report_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_campaign_history_data.csv", "original_file_path": "seeds/linkedin_ad_campaign_history_data.csv", "name": "linkedin_ad_campaign_history_data", "alias": "linkedin_ad_campaign_history_data", "checksum": {"name": "sha256", "checksum": "90cdf3c013456ff4a40f502e0d55fa10be2dfdb269b5b79b41671ab4558ae879"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.498268, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_history_data`"}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_line_item_report_data.csv", "original_file_path": "seeds/twitter_line_item_report_data.csv", "name": "twitter_line_item_report_data", "alias": "twitter_line_item_report_data", "checksum": {"name": "sha256", "checksum": "4cef1efaf56e236366e68ccc814c5da3ddf3d2504ab3f156d5f4da1918c0bed6"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.50222, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_report_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_keyword_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_keyword_report_data.csv", "original_file_path": "seeds/pinterest_ads_keyword_report_data.csv", "name": "pinterest_ads_keyword_report_data", "alias": "pinterest_ads_keyword_report_data", "checksum": {"name": "sha256", "checksum": "46fc926a1182c51ea670ec916f3a86dfa2f20d5553227275682310462caaa849"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.506186, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_keyword_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_keyword_performance_daily_report_data", "alias": "microsoft_ads_keyword_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "24aab796f90b4c8d3376f138913e0070b2295af6744e8aeef1a5a68b06c4f32b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.5103092, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "account_id": "int64", "ad_set_id": "int64", "campaign_id": "int64", "creative_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_ad_history_data.csv", "original_file_path": "seeds/facebook_ads_ad_history_data.csv", "name": "facebook_ads_ad_history_data", "alias": "facebook_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "95c960d78745b1652034ba4da5cc2a7d5b923e816a81c90360f1b28588b7befd"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_set_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "creative_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.515452, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_campaign_history_data.csv", "original_file_path": "seeds/apple_search_campaign_history_data.csv", "name": "apple_search_campaign_history_data", "alias": "apple_search_campaign_history_data", "checksum": {"name": "sha256", "checksum": "42cca2a87492b1c40a102fd9f9941a0894cdb254d7027a88dc9dedfeca1bb67c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.519507, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_campaign_history_data.csv", "original_file_path": "seeds/pinterest_ads_campaign_history_data.csv", "name": "pinterest_ads_campaign_history_data", "alias": "pinterest_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "4c2ec13ff8548a5571e2de4601947d72d934669534584fa234099b3200564aab"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.523572, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_history_data`"}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_account_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_account_report_data.csv", "original_file_path": "seeds/twitter_account_report_data.csv", "name": "twitter_account_report_data", "alias": "twitter_account_report_data", "checksum": {"name": "sha256", "checksum": "d1364362cbe48a00e05e628fac71d48e151ee2c5394b44c6000765ea069fa154"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.5275688, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_account_report_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_creative_history_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_creative_history_data.csv", "original_file_path": "seeds/linkedin_ad_creative_history_data.csv", "name": "linkedin_ad_creative_history_data", "alias": "linkedin_ad_creative_history_data", "checksum": {"name": "sha256", "checksum": "60d568d212f155df35c86f9d39572cf55a733c53598016adb0aa9b4df79ce2e8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1667945766.531822, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_creative_history_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_squad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_squad_history_data.csv", "original_file_path": "seeds/snapchat_ad_squad_history_data.csv", "name": "snapchat_ad_squad_history_data", "alias": "snapchat_ad_squad_history_data", "checksum": {"name": "sha256", "checksum": "0e83ca691f2153480e7b63173f1c7ed8c38c0dc247d41a6f2fd46afc1e5963b1"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.5357819, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_history_data`"}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_campaign_history_data.csv", "original_file_path": "seeds/twitter_campaign_history_data.csv", "name": "twitter_campaign_history_data", "alias": "twitter_campaign_history_data", "checksum": {"name": "sha256", "checksum": "efc42a8a6652bd7f8fdcad7bd3e5803a749190f78acfd3aa5c5aa05e31d6bd35"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.5395882, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_pin_promotion_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_pin_promotion_history_data.csv", "original_file_path": "seeds/pinterest_ads_pin_promotion_history_data.csv", "name": "pinterest_ads_pin_promotion_history_data", "alias": "pinterest_ads_pin_promotion_history_data", "checksum": {"name": "sha256", "checksum": "6b7c5d891ccb02be0c1e126545984964eb4fa226a9d1ae9741ad76288497e338"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.5438778, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_ad_group_history_data.csv", "original_file_path": "seeds/apple_search_ad_group_history_data.csv", "name": "apple_search_ad_group_history_data", "alias": "apple_search_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "6940c04c90cc94b46d8a36bf1b3701cbd64d75b298222e26819aaf6460ddf984"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.54794, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_history_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_campaign_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_campaign_group_history_data.csv", "original_file_path": "seeds/linkedin_ad_campaign_group_history_data.csv", "name": "linkedin_ad_campaign_group_history_data", "alias": "linkedin_ad_campaign_group_history_data", "checksum": {"name": "sha256", "checksum": "a3e2f426d56d779f1bcb3013b2d4862e7a8203c0372c4892e598165fedab1744"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.552011, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_group_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_ad_group_history_data.csv", "original_file_path": "seeds/pinterest_ads_ad_group_history_data.csv", "name": "pinterest_ads_ad_group_history_data", "alias": "pinterest_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "ff76dce5a5b57b38a03bfc295838b9f05e99e3e310066ac3fc96f7c78e3b6be8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.5560682, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_history_data`"}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_campaign_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_campaign_stats_data.csv", "original_file_path": "seeds/google_ads_campaign_stats_data.csv", "name": "google_ads_campaign_stats_data", "alias": "google_ads_campaign_stats_data", "checksum": {"name": "sha256", "checksum": "f8ffb40c33a31cdd4185ed5e956cfdaff9736054806ef3f9da5cf6f036ef7d0d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.560436, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_stats_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_account_history_data.csv", "original_file_path": "seeds/microsoft_ads_account_history_data.csv", "name": "microsoft_ads_account_history_data", "alias": "microsoft_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "282800342d5306132bdc208ee361599831ae8566b4639cd5c3bea492062e4b78"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.564471, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_history_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_account_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_account_performance_daily_report_data", "alias": "microsoft_ads_account_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "38506b413bb9edde36b2b1ab800847a06cddd5205317dbcd351ae3b0eb730bc2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.568488, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_ad_history_data.csv", "original_file_path": "seeds/tiktok_ad_history_data.csv", "name": "tiktok_ad_history_data", "alias": "tiktok_ad_history_data", "checksum": {"name": "sha256", "checksum": "e8cd94df3f2404a811c8e661e0a3c9e843a93af4082a34bcf4e2a0581a582fb5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.572453, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"page_link": "string", "template_page_link": "string", "id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_creative_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_creative_history_data.csv", "original_file_path": "seeds/facebook_ads_creative_history_data.csv", "name": "facebook_ads_creative_history_data", "alias": "facebook_ads_creative_history_data", "checksum": {"name": "path", "checksum": "seeds/facebook_ads_creative_history_data.csv"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.576859, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_creative_history_data`"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_adgroup_report_hourly_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_adgroup_report_hourly_data.csv", "original_file_path": "seeds/tiktok_adgroup_report_hourly_data.csv", "name": "tiktok_adgroup_report_hourly_data", "alias": "tiktok_adgroup_report_hourly_data", "checksum": {"name": "sha256", "checksum": "8be9d24fc395101fc03be9b0e38f0e87baf450c262ce29af544fd1fae72c203a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.5808508, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_report_hourly_data`"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"tweet_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_promoted_tweet_history_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_promoted_tweet_history_data.csv", "original_file_path": "seeds/twitter_promoted_tweet_history_data.csv", "name": "twitter_promoted_tweet_history_data", "alias": "twitter_promoted_tweet_history_data", "checksum": {"name": "sha256", "checksum": "ec5e3be3c75b17b07893e9e7c21a4e0b8d5a820a73d3306fd94ec59935714690"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.584842, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_organization_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_organization_data.csv", "original_file_path": "seeds/apple_search_organization_data.csv", "name": "apple_search_organization_data", "alias": "apple_search_organization_data", "checksum": {"name": "sha256", "checksum": "bbb5878ab9c07bd1f391181a8321ea50476f37d25f36fd1d66e58d513336699c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.588827, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_organization_data`"}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_campaign_history_data.csv", "original_file_path": "seeds/tiktok_campaign_history_data.csv", "name": "tiktok_campaign_history_data", "alias": "tiktok_campaign_history_data", "checksum": {"name": "sha256", "checksum": "c9a4686eed6f728add12beb70cb5820de610d87e882111bc1fa254c361ed0321"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.5929768, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_history_data`"}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_advertiser_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_advertiser_data.csv", "original_file_path": "seeds/tiktok_advertiser_data.csv", "name": "tiktok_advertiser_data", "alias": "tiktok_advertiser_data", "checksum": {"name": "sha256", "checksum": "de5eae63898b95132ec4cadc4e896dd253e3a2cb1dd0d8a94df849ca8e861a4c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.59681, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_advertiser_data`"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_promoted_tweet_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_promoted_tweet_report_data.csv", "original_file_path": "seeds/twitter_promoted_tweet_report_data.csv", "name": "twitter_promoted_tweet_report_data", "alias": "twitter_promoted_tweet_report_data", "checksum": {"name": "sha256", "checksum": "6a94bf0e2cfcebb31203eba09cf167ef23144b892aa14b654461ff216b4b6a8e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.600621, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_ad_group_stats_data.csv", "original_file_path": "seeds/google_ads_ad_group_stats_data.csv", "name": "google_ads_ad_group_stats_data", "alias": "google_ads_ad_group_stats_data", "checksum": {"name": "sha256", "checksum": "d3ac6d88466ebf8fca7753e60be01dfa615a8e9b654da4d91fab8ee59c6c7cf0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.604915, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_stats_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_ad_stats_data.csv", "original_file_path": "seeds/google_ads_ad_stats_data.csv", "name": "google_ads_ad_stats_data", "alias": "google_ads_ad_stats_data", "checksum": {"name": "sha256", "checksum": "7aa7a5c05d68344ef454636b9f70e4e69869c5d78f677b20df600e5ac2ddcb25"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.608976, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_stats_data`"}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_campaign_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_campaign_report_data.csv", "original_file_path": "seeds/twitter_campaign_report_data.csv", "name": "twitter_campaign_report_data", "alias": "twitter_campaign_report_data", "checksum": {"name": "sha256", "checksum": "bb3bdaea68e1bc903cb5b3a3e507926b43009e0f52ec2f867a97e7276cef81bb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.612926, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_account_history_data.csv", "original_file_path": "seeds/google_ads_account_history_data.csv", "name": "google_ads_account_history_data", "alias": "google_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "bf0559a512f089514aa67964b7ae5aef0fee8deb6e0874c01e853ed78dd7883d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.616744, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_campaign_history_data.csv", "original_file_path": "seeds/facebook_ads_campaign_history_data.csv", "name": "facebook_ads_campaign_history_data", "alias": "facebook_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "1dfd8244efe7c32be5fb93c8417575d79670225092a28cab9da03d0ad7773432"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.620977, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_campaign_history_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_keyword_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_keyword_history_data.csv", "original_file_path": "seeds/microsoft_ads_keyword_history_data.csv", "name": "microsoft_ads_keyword_history_data", "alias": "microsoft_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "e736b54737adad8174d44a89eab9a6b720326744bff802fda870f585c86e7511"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.625067, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_history_data`"}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"tweet_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_tweet_url_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_tweet_url_data.csv", "original_file_path": "seeds/twitter_tweet_url_data.csv", "name": "twitter_tweet_url_data", "alias": "twitter_tweet_url_data", "checksum": {"name": "sha256", "checksum": "9dc909bf2d2459ddb0228c3ba58e230b8080a67ffaecce201f5de36c338d62b2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.629094, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_url_data`"}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"modification_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_keyword_history_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_keyword_history_data.csv", "original_file_path": "seeds/apple_search_keyword_history_data.csv", "name": "apple_search_keyword_history_data", "alias": "apple_search_keyword_history_data", "checksum": {"name": "sha256", "checksum": "a6d53cd4951594b21214e60bf51503907ee364eac04c7d24a19dc490cc7d818c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"modification_time": "timestamp"}}, "created_at": 1667945766.6331148, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_campaign_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_campaign_report_data.csv", "original_file_path": "seeds/pinterest_ads_campaign_report_data.csv", "name": "pinterest_ads_campaign_report_data", "alias": "pinterest_ads_campaign_report_data", "checksum": {"name": "sha256", "checksum": "40dc5b48841d732d7707801558e939abdbf2c0c333a2a4b6f76cd40d68f90f78"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.637461, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_search_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_search_performance_daily_report_data", "alias": "microsoft_ads_search_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "d511070057e0350bd6feeff317d9adf1fbe30690b615211738b3f2efc6e29133"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.641522, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_search_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_campaign_history_data.csv", "original_file_path": "seeds/google_ads_campaign_history_data.csv", "name": "google_ads_campaign_history_data", "alias": "google_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "54db8f4f5a51eae1af9391b9b74c4b847485e82c382a25ebc1b4a727640825e5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.645598, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_keyword_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_keyword_history_data.csv", "original_file_path": "seeds/pinterest_ads_keyword_history_data.csv", "name": "pinterest_ads_keyword_history_data", "alias": "pinterest_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "589c187cfa8845b5851700d6e10128a158fe860a55a4f4de7f83b1e92226bc9e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.6500092, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_history_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"day": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_analytics_by_creative_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_analytics_by_creative_data.csv", "original_file_path": "seeds/linkedin_ad_analytics_by_creative_data.csv", "name": "linkedin_ad_analytics_by_creative_data", "alias": "linkedin_ad_analytics_by_creative_data", "checksum": {"name": "sha256", "checksum": "90a1a324923b47307989ab10594f537f8c45262ffcdfd8ffbe09bae7f05760f7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"day": "timestamp"}}, "created_at": 1667945766.6540349, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_creative_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_history_data.csv", "original_file_path": "seeds/snapchat_ad_history_data.csv", "name": "snapchat_ad_history_data", "alias": "snapchat_ad_history_data", "checksum": {"name": "sha256", "checksum": "839c0910ff6ff3cff2580bd9144223132dd1d87f003aeea329e47ba858a2dc23"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.65794, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_account_history_data.csv", "original_file_path": "seeds/facebook_ads_account_history_data.csv", "name": "facebook_ads_account_history_data", "alias": "facebook_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "cd864f60b0ec016488416e66c22b5ff0ffcb882139124d92c3207f5abb0ae36d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.661838, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_account_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_campaign_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_campaign_report_data.csv", "original_file_path": "seeds/apple_search_campaign_report_data.csv", "name": "apple_search_campaign_report_data", "alias": "apple_search_campaign_report_data", "checksum": {"name": "sha256", "checksum": "a4a374475156eb8d9ddc40c43cadbcc843efcf7a55180346d2d4b875c2791ab1"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.666135, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_ad_group_history_data.csv", "original_file_path": "seeds/google_ads_ad_group_history_data.csv", "name": "google_ads_ad_group_history_data", "alias": "google_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "82518353626bed4214f1dea514b77c97c96da2e4c7253734c3268e55111e67ce"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.670065, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_history_data`"}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_campaign_history_data.csv", "original_file_path": "seeds/snapchat_campaign_history_data.csv", "name": "snapchat_campaign_history_data", "alias": "snapchat_campaign_history_data", "checksum": {"name": "sha256", "checksum": "640eb2ec082938ad70c430a6b3441711f6fed19eb6e28d7622f03294e92e5b70"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.674005, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ad_id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_basic_ad_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_basic_ad_data.csv", "original_file_path": "seeds/facebook_ads_basic_ad_data.csv", "name": "facebook_ads_basic_ad_data", "alias": "facebook_ads_basic_ad_data", "checksum": {"name": "sha256", "checksum": "66b31e24edd0ba75d3fee6ad4c1522fd9b43417943aac398f1c92f5076ba7ac0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ad_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.677922, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_basic_ad_data`"}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_ad_report_hourly_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_ad_report_hourly_data.csv", "original_file_path": "seeds/tiktok_ad_report_hourly_data.csv", "name": "tiktok_ad_report_hourly_data", "alias": "tiktok_ad_report_hourly_data", "checksum": {"name": "sha256", "checksum": "d69dcb9baa6015d02d6304146b4f3c6cab3fb75431c351636d9c9f65b5f7d911"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.682168, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_report_hourly_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_group_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_ad_group_performance_daily_report_data", "alias": "microsoft_ads_ad_group_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "384b5c5b4f318171a536391e3591a2d4833f4bafeef3ea7f20be82b1f04b1346"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.686103, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_search_term_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_search_term_report_data.csv", "original_file_path": "seeds/apple_search_search_term_report_data.csv", "name": "apple_search_search_term_report_data", "alias": "apple_search_search_term_report_data", "checksum": {"name": "sha256", "checksum": "6add75b68a0f9a6f153a9fb83a682387a76a5b89d6dcd14fdbbcb5b418bb3b5a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.690054, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_search_term_report_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_squad_hourly_report_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_squad_hourly_report_data.csv", "original_file_path": "seeds/snapchat_ad_squad_hourly_report_data.csv", "name": "snapchat_ad_squad_hourly_report_data", "alias": "snapchat_ad_squad_hourly_report_data", "checksum": {"name": "sha256", "checksum": "bfd35d6b8446668beead2ac4590a52d36815d55adf1dee4cde552a5538fc1725"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.6938791, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_hourly_report_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_account_history_data.csv", "original_file_path": "seeds/linkedin_ad_account_history_data.csv", "name": "linkedin_ad_account_history_data", "alias": "linkedin_ad_account_history_data", "checksum": {"name": "sha256", "checksum": "e00ceef7b82a006c9fb463fe928e58f1d0bdaeddb0541508934c62d0142084fb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1667945766.698337, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_account_history_data`"}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_account_history_data.csv", "original_file_path": "seeds/twitter_account_history_data.csv", "name": "twitter_account_history_data", "alias": "twitter_account_history_data", "checksum": {"name": "sha256", "checksum": "229fd6a7831e53082c29732e64a0e1dde615b4918a4a724a20f5277acbc6b91f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.7023098, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_account_history_data`"}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_creative_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_creative_history_data.csv", "original_file_path": "seeds/snapchat_creative_history_data.csv", "name": "snapchat_creative_history_data", "alias": "snapchat_creative_history_data", "checksum": {"name": "sha256", "checksum": "40505e1e47b59c850371007584560a03172120f078da2c81c6712aea77d868a8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.7063549, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_history_data`"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_analytics_by_campaign_data"], "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "linkedin_ad_analytics_by_campaign_data.csv", "original_file_path": "seeds/linkedin_ad_analytics_by_campaign_data.csv", "name": "linkedin_ad_analytics_by_campaign_data", "alias": "linkedin_ad_analytics_by_campaign_data", "checksum": {"name": "sha256", "checksum": "a6b72fcf11043561ec04bae0035659363e992cd11f8ed5376f056b7f4e5b5b32"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.710523, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_campaign_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_ad_history_data.csv", "original_file_path": "seeds/google_ads_ad_history_data.csv", "name": "google_ads_ad_history_data", "alias": "google_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "d75e5e99b2a5e2c3cecf248666c708c739a75cdee2cd66068fc893d9fe7ad635"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.714408, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_history_data`"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "account_id": "int64", "campaign_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "facebook_ads_ad_set_history_data"], "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "facebook_ads_ad_set_history_data.csv", "original_file_path": "seeds/facebook_ads_ad_set_history_data.csv", "name": "facebook_ads_ad_set_history_data", "alias": "facebook_ads_ad_set_history_data", "checksum": {"name": "sha256", "checksum": "da4e6b48f3feaa4bd2c3783b125909a14c5317b3c1484b4f6af5d7c1d88f5bd7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.718425, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_set_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_pin_promotion_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_pin_promotion_report_data.csv", "original_file_path": "seeds/pinterest_ads_pin_promotion_report_data.csv", "name": "pinterest_ads_pin_promotion_report_data", "alias": "pinterest_ads_pin_promotion_report_data", "checksum": {"name": "sha256", "checksum": "adef7939173c1809f516a7cf739b697eb875210228e21a1cbb52bbdee7dc4ce4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.72252, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_report_data`"}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_keyword_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_keyword_report_data.csv", "original_file_path": "seeds/apple_search_keyword_report_data.csv", "name": "apple_search_keyword_report_data", "alias": "apple_search_keyword_report_data", "checksum": {"name": "sha256", "checksum": "6aafe7098ea6f18764856a6631b190de106462f83f8bb1d3c8fb91e2d3cfffee"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.7268229, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_report_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_hourly_report_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_hourly_report_data.csv", "original_file_path": "seeds/snapchat_ad_hourly_report_data.csv", "name": "snapchat_ad_hourly_report_data", "alias": "snapchat_ad_hourly_report_data", "checksum": {"name": "sha256", "checksum": "1f2f808727dc7d9d45ba0ac10bba717da6454110d8fb242ee54986b8b60d7f9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"date": "timestamp"}}, "created_at": 1667945766.730709, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_hourly_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_ad_performance_daily_report_data", "alias": "microsoft_ads_ad_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "026f9dd8b52f39f82551e9b632dc4ee00ef44df83c0227d076ecb260025a451a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.734675, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_tweet_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_tweet_data.csv", "original_file_path": "seeds/twitter_tweet_data.csv", "name": "twitter_tweet_data", "alias": "twitter_tweet_data", "checksum": {"name": "sha256", "checksum": "7e28de3484a806b3428f4898e035364e2a282ef5819cfe895f8c94f6455e726f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.73856, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_data`"}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_campaign_hourly_report_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_campaign_hourly_report_data.csv", "original_file_path": "seeds/snapchat_campaign_hourly_report_data.csv", "name": "snapchat_campaign_hourly_report_data", "alias": "snapchat_campaign_hourly_report_data", "checksum": {"name": "sha256", "checksum": "30cfac35c4fb0c216f8992ee23e13c2ed9322373ef62316ca9b5876952444295"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.742677, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_hourly_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_ad_history_data.csv", "original_file_path": "seeds/microsoft_ads_ad_history_data.csv", "name": "microsoft_ads_ad_history_data", "alias": "microsoft_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "68d19aa9efd8111d82af64fb5ceadb9d124fe1f2d1ec9d87fb6a87e96b4e6eba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.746586, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_history_data`"}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_keywords_report_data"], "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "twitter_line_item_keywords_report_data.csv", "original_file_path": "seeds/twitter_line_item_keywords_report_data.csv", "name": "twitter_line_item_keywords_report_data", "alias": "twitter_line_item_keywords_report_data", "checksum": {"name": "sha256", "checksum": "80107d8a67ce63a986c2e1a4d7af8d1e6572053a11e20e7df98f5d42e0da690e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.750516, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_keywords_report_data`"}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_account_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_ad_account_history_data.csv", "original_file_path": "seeds/snapchat_ad_account_history_data.csv", "name": "snapchat_ad_account_history_data", "alias": "snapchat_ad_account_history_data", "checksum": {"name": "sha256", "checksum": "0e1f3a58ee6a4863bb59fbd30c286606f0de77040fbb2903ab312e5d248454cb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.75437, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_account_history_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_campaign_performance_daily_report_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "microsoft_ads_campaign_performance_daily_report_data", "alias": "microsoft_ads_campaign_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "d17c48a2ce7415911e29e14861236fd168f454468a3dbfbf8bf73e8d28ee1e00"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.75858, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_performance_daily_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_criterion_history_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_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", "name": "google_ads_ad_group_criterion_history_data", "alias": "google_ads_ad_group_criterion_history_data", "checksum": {"name": "sha256", "checksum": "ba922f14e5ead32ec131a2d000bede63d45f504b6c27fc84534b4bf56fc019f2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.762617, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_criterion_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_ad_report_data.csv", "original_file_path": "seeds/apple_search_ad_report_data.csv", "name": "apple_search_ad_report_data", "alias": "apple_search_ad_report_data", "checksum": {"name": "sha256", "checksum": "cec2ecc4c7e91cf19165a1e29734c42255fd997ade35f03a22609aac5fa8e5f3"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.766502, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_report_data`"}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "google_ads_account_stats_data"], "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "google_ads_account_stats_data.csv", "original_file_path": "seeds/google_ads_account_stats_data.csv", "name": "google_ads_account_stats_data", "alias": "google_ads_account_stats_data", "checksum": {"name": "sha256", "checksum": "d6b21f0858465ed0937e45a56e864fa023280d4e9a343e3e8442764386717ff7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.770634, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_stats_data`"}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "snapchat_creative_url_tag_history_data"], "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "snapchat_creative_url_tag_history_data.csv", "original_file_path": "seeds/snapchat_creative_url_tag_history_data.csv", "name": "snapchat_creative_url_tag_history_data", "alias": "snapchat_creative_url_tag_history_data", "checksum": {"name": "sha256", "checksum": "c5e8dbafad038e142209d2145532d5d5e762922bf4fe44535901b46cd9797dcc"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.774411, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_url_tag_history_data`"}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_campaign_report_hourly_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_campaign_report_hourly_data.csv", "original_file_path": "seeds/tiktok_campaign_report_hourly_data.csv", "name": "tiktok_campaign_report_hourly_data", "alias": "tiktok_campaign_report_hourly_data", "checksum": {"name": "sha256", "checksum": "e142bf0e3037365792c797d4dcbc3c3ec4621f1802fae83b3ef5a4f05630f162"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.778187, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_report_hourly_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_campaign_history_data.csv", "original_file_path": "seeds/microsoft_ads_campaign_history_data.csv", "name": "microsoft_ads_campaign_history_data", "alias": "microsoft_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "b713e54ffdbc25d2260c83c5a17eb48d98bde788bcdb5b62defa9cca936cb552"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.781954, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_advertiser_history_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_advertiser_history_data.csv", "original_file_path": "seeds/pinterest_ads_advertiser_history_data.csv", "name": "pinterest_ads_advertiser_history_data", "alias": "pinterest_ads_advertiser_history_data", "checksum": {"name": "sha256", "checksum": "a1efd698a39cc0a75b74b43b84d114eddf6eaac9d3dd7d2a06e704951c091fe4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.7861571, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_history_data`"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "pinterest_ads_advertiser_report_data"], "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "pinterest_ads_advertiser_report_data.csv", "original_file_path": "seeds/pinterest_ads_advertiser_report_data.csv", "name": "pinterest_ads_advertiser_report_data", "alias": "pinterest_ads_advertiser_report_data", "checksum": {"name": "sha256", "checksum": "d1a7a977ede788e2610dc21decfb57c226253807e9780784d17a06175f9adef8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1667945766.790163, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_report_data`"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_group_report_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_ad_group_report_data.csv", "original_file_path": "seeds/apple_search_ad_group_report_data.csv", "name": "apple_search_ad_group_report_data", "alias": "apple_search_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "135ee77ac9c3aa146d4f0281b04312c1034c271276f215b27145bb99f83534f5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.794066, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_report_data`"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "INT64", "campaign_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "microsoft_ads_ad_group_history_data.csv", "original_file_path": "seeds/microsoft_ads_ad_group_history_data.csv", "name": "microsoft_ads_ad_group_history_data", "alias": "microsoft_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "4abd621bb94190bc111a86b471c7cde3b75308f0eee84a0c62fcdeb53bc54d9e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "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": 1667945766.797935, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_history_data`"}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "apple_search_ad_history_data.csv", "original_file_path": "seeds/apple_search_ad_history_data.csv", "name": "apple_search_ad_history_data", "alias": "apple_search_ad_history_data", "checksum": {"name": "sha256", "checksum": "e9e1a65339d24d616ce16ea8ee3cc902473a1b5048789ad338c4ba6ca57fe8e0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}}, "created_at": 1667945766.802208, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_history_data`"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "fqn": ["ad_reporting_integration_tests", "tiktok_adgroup_history_data"], "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "tiktok_adgroup_history_data.csv", "original_file_path": "seeds/tiktok_adgroup_history_data.csv", "name": "tiktok_adgroup_history_data", "alias": "tiktok_adgroup_history_data", "checksum": {"name": "sha256", "checksum": "572b082b8c5ae907a5223b5e07ac93098104c5cc39fe525580c858aaf5efeebd"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}"}, "created_at": 1667945766.8061051, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_history_data`"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_account_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_daily_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__account_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__account_daily_report.sql", "name": "stg_microsoft_ads__account_daily_report", "alias": "stg_microsoft_ads__account_daily_report", "checksum": {"name": "sha256", "checksum": "13f0f5b9c0d3c8e1474867c8492a360d07f6cb1756022a352c821be8cda7af26"}, "tags": [], "refs": [["stg_microsoft_ads__account_daily_report_tmp"], ["stg_microsoft_ads__account_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.6923509, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_search_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__search_daily_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__search_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__search_daily_report.sql", "name": "stg_microsoft_ads__search_daily_report", "alias": "stg_microsoft_ads__search_daily_report", "checksum": {"name": "sha256", "checksum": "c776b1595930feed1c4dfa76f94f9c346ff92e0ccfe2c52275bfef45ddf71c7c"}, "tags": [], "refs": [["stg_microsoft_ads__search_daily_report_tmp"], ["stg_microsoft_ads__search_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__search_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.7689888, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_keyword_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_daily_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__keyword_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__keyword_daily_report.sql", "name": "stg_microsoft_ads__keyword_daily_report", "alias": "stg_microsoft_ads__keyword_daily_report", "checksum": {"name": "sha256", "checksum": "355959720c8f47de848c95bd42c6eefd81aeb89c02b20a3cc7e3e75098212212"}, "tags": [], "refs": [["stg_microsoft_ads__keyword_daily_report_tmp"], ["stg_microsoft_ads__keyword_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.757697, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_campaign_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_daily_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 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", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__campaign_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__campaign_daily_report.sql", "name": "stg_microsoft_ads__campaign_daily_report", "alias": "stg_microsoft_ads__campaign_daily_report", "checksum": {"name": "sha256", "checksum": "350b630e95b8e31e3c5dbb9ac98db233eca65a16198d4b03059122e118488edb"}, "tags": [], "refs": [["stg_microsoft_ads__campaign_daily_report_tmp"], ["stg_microsoft_ads__campaign_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.7407732, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__keyword_history.sql", "original_file_path": "models/stg_microsoft_ads__keyword_history.sql", "name": "stg_microsoft_ads__keyword_history", "alias": "stg_microsoft_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "1ab4d19ab769d28e12c6671643ccd3abcdb71dfbabffa4dbbe0fc4b08bae4232"}, "tags": [], "refs": [["stg_microsoft_ads__keyword_history_tmp"], ["stg_microsoft_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft keywords.", "columns": {"keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.746378, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_group_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_daily_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_daily_report.sql", "name": "stg_microsoft_ads__ad_group_daily_report", "alias": "stg_microsoft_ads__ad_group_daily_report", "checksum": {"name": "sha256", "checksum": "1469a2b46ec430dc3226a0ce28ad9e915104811f3b4aec44e6ef28aed7b2f48d"}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_daily_report_tmp"], ["stg_microsoft_ads__ad_group_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.708739, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_history.sql", "name": "stg_microsoft_ads__ad_group_history", "alias": "stg_microsoft_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "4de2e41bc989a2384df40fae5c9ab580b60bbc880b0d26c7ca84ab3937f3a7cf"}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_history_tmp"], ["stg_microsoft_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft ad groups.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The date in which an ad group starts running.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The date in which this ad group will no longer run.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.6984708, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__ad_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_history.sql", "name": "stg_microsoft_ads__ad_history", "alias": "stg_microsoft_ads__ad_history", "checksum": {"name": "sha256", "checksum": "8b09a143b8874327b96ac512de797191baa321edd39103216953d6badb73351d"}, "tags": [], "refs": [["stg_microsoft_ads__ad_history_tmp"], ["stg_microsoft_ads__ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft ads.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The full URL that the ad links to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.714864, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp", "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_daily_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__ad_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_daily_report.sql", "name": "stg_microsoft_ads__ad_daily_report", "alias": "stg_microsoft_ads__ad_daily_report", "checksum": {"name": "sha256", "checksum": "5867c7ac2235bcdddd45c7c6f48b5340184f440ff88ffcd5f53f0e7e8a8f21c6"}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report_tmp"], ["stg_microsoft_ads__ad_daily_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad and all non-metric columns.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_daily_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.725641, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by last_modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__account_history.sql", "original_file_path": "models/stg_microsoft_ads__account_history.sql", "name": "stg_microsoft_ads__account_history", "alias": "stg_microsoft_ads__account_history", "checksum": {"name": "sha256", "checksum": "39eeb4c34161dd3e6ccee2310eb51adae09769ee8dca6b2e22d7d421048698e6"}, "tags": [], "refs": [["stg_microsoft_ads__account_history_tmp"], ["stg_microsoft_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft accounts.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.683397, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.microsoft_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "stg_microsoft_ads__campaign_history.sql", "original_file_path": "models/stg_microsoft_ads__campaign_history.sql", "name": "stg_microsoft_ads__campaign_history", "alias": "stg_microsoft_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "c47ff718f4a476f21216ecc8fee70546821ffa8af1b6309a6a88bde23e6ce763"}, "tags": [], "refs": [["stg_microsoft_ads__campaign_history_tmp"], ["stg_microsoft_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a version of one or more Microsoft campaigns.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945772.7315662, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__search_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('search_performance_daily_report') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__search_daily_report_tmp", "alias": "stg_microsoft_ads__search_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "9b8d4452caa10568d6716c0c6b39598a962e60ca1859c4902ad9f7ad2bd28626"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "search_query_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.229055, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_search_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_history') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__ad_group_history_tmp", "alias": "stg_microsoft_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "0aebf1d34a59e00211f044b66e94c2d5141b3c0fc7b152dbdc769942a2da1c6e"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.245409, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_performance_daily_report') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "alias": "stg_microsoft_ads__campaign_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "673ffabe992b47d945786bc8f91ad5d586854df386a3bb40ddae76d7ad41da33"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "campaign_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.259943, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_history') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "name": "stg_microsoft_ads__ad_history_tmp", "alias": "stg_microsoft_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "f1af9df8b7a8c5f0eae62106592b9c8719d3f8ff9bd09f6d4f868a46b0acd0af"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.2756, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_history') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "tmp/stg_microsoft_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__account_history_tmp.sql", "name": "stg_microsoft_ads__account_history_tmp", "alias": "stg_microsoft_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "f326243a07088f5fde31cda73d5ada38bc95edbb0acd6f20b1cc479d076eeeed"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.2889118, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_performance_daily_report') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__ad_daily_report_tmp", "alias": "stg_microsoft_ads__ad_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "4cf26ae811cd73631d86eee119cf79e71fd008b630b39e2e4d9bec63df999506"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "ad_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.301167, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_performance_daily_report') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "alias": "stg_microsoft_ads__ad_group_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "57f3f8acc0b43e57bba5c441bff246ada9d9ff8715098271628ac5122138dd0e"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "ad_group_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.316143, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_performance_daily_report') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "alias": "stg_microsoft_ads__keyword_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "ba23d7a4b13beac610573f8c6f8b5ba0ab4305b00e4453b7da4383c06062b9a7"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "keyword_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.329338, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_history') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "tmp/stg_microsoft_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "name": "stg_microsoft_ads__keyword_history_tmp", "alias": "stg_microsoft_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "3d52da52eb899f748854c603db39c3fc0971a2140d4515e10c9f41623cc3bd3c"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "keyword_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.34364, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_history_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "tmp/stg_microsoft_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "name": "stg_microsoft_ads__campaign_history_tmp", "alias": "stg_microsoft_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "c4a882096d8a71aaee29080771645afbd99d3f680b5575cc798abbeb0925291d"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.358704, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history_tmp`"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads_source", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_daily_report_tmp"], "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_performance_daily_report') }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_microsoft_ads__account_daily_report_tmp", "alias": "stg_microsoft_ads__account_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "f7861bfb9f1931e450f018bf995c5eb19f2f0a79efb7d426e69b28965d637aa5"}, "tags": [], "refs": [], "sources": [["microsoft_ads", "account_performance_daily_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945767.375852, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report_tmp`"}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__ad_group_report"], "unique_id": "model.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 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.action_categories,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join advertiser\n on ad_groups.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(16) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__ad_group_report.sql", "original_file_path": "models/tiktok_ads__ad_group_report.sql", "name": "tiktok_ads__ad_group_report", "alias": "tiktok_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "cd6f0250ddc693a683fb43b67c723a0f30c205465b44856b369764e593d0188a"}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly"], ["stg_tiktok_ads__ad_group_history"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the ad group level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.016546, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly`\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\naggregated as (\n\n select\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.action_categories,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join advertiser\n on ad_groups.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`"}, "model.tiktok_ads.tiktok_ads__url_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__url_report"], "unique_id": "model.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 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.action_categories,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n\n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n {{ dbt_utils.group_by(26) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__url_report.sql", "original_file_path": "models/tiktok_ads__url_report.sql", "name": "tiktok_ads__url_report", "alias": "tiktok_ads__url_report", "checksum": {"name": "sha256", "checksum": "db53a257d4f238a8de29f52398d7382176008c2627f4831dc87b189bee9da91e"}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"], ["stg_tiktok_ads__ad_history"], ["stg_tiktok_ads__ad_group_history"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the URL level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.053653, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\naggregated as (\n\n select\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.action_categories,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n\n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\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\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`"}, "model.tiktok_ads.tiktok_ads__campaign_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__campaign_report"], "unique_id": "model.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 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 left join advertiser\n on campaigns.advertiser_id = advertiser.advertiser_id\n {{ dbt_utils.group_by(6) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__campaign_report.sql", "original_file_path": "models/tiktok_ads__campaign_report.sql", "name": "tiktok_ads__campaign_report", "alias": "tiktok_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "e326da741a25ba4b3cdbeca8fb8e249c30cd5ef582be47077c14f4259804286f"}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly"], ["stg_tiktok_ads__campaign_history"], ["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the campaign level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "daily_daily_ctr": {"name": "daily_daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.029682, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\naggregated as (\n\n select\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 left join advertiser\n on campaigns.advertiser_id = advertiser.advertiser_id\n group by 1,2,3,4,5,6\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`"}, "model.tiktok_ads.tiktok_ads__ad_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__ad_report"], "unique_id": "model.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 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.action_categories,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(18) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__ad_report.sql", "original_file_path": "models/tiktok_ads__ad_report.sql", "name": "tiktok_ads__ad_report", "alias": "tiktok_ads__ad_report", "checksum": {"name": "sha256", "checksum": "ceee3ce54092049c327198fdc079ec337fa26661db48a8f976bc996997f8cac6"}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"], ["stg_tiktok_ads__ad_history"], ["stg_tiktok_ads__ad_group_history"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1667945772.9977238, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n),\n\naggregated as (\n\n select\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.action_categories,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n ad_groups.age,\n ad_groups.languages,\n ad_groups.interest_category,\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 left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`"}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_tiktok_ads", "fqn": ["tiktok_ads", "tiktok_ads__advertiser_report"], "unique_id": "model.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 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 left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n {{ dbt_utils.group_by(4) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "tiktok_ads__advertiser_report.sql", "original_file_path": "models/tiktok_ads__advertiser_report.sql", "name": "tiktok_ads__advertiser_report", "alias": "tiktok_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "b78cce2d035af7c7214232ba2acd99a6ade4908ee71ce08fed3322fa380c08b4"}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the account level.", "columns": {"date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__advertiser_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1667945772.9778419, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n),\n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\njoined as (\n\n select\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 left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n group by 1,2,3,4\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`"}, "model.twitter_ads.twitter_ads__account_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__account_report"], "unique_id": "model.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 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 group by 1,2,3\n\n),\n\nfinal as (\n\n select \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\n {{ dbt_utils.group_by(n=13) }}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__account_report.sql", "original_file_path": "models/twitter_ads__account_report.sql", "name": "twitter_ads__account_report", "alias": "twitter_ads__account_report", "checksum": {"name": "sha256", "checksum": "16ac0265f5e3aa59cf06260bb446a6ef88d625c029d2e7298d44b9008c350fa9"}, "tags": [], "refs": [["stg_twitter_ads__account_history"], ["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the account level, within a placement in Twitter.\n", "columns": {"spend_micro": {"name": "spend_micro", "description": "The spend (in micros) for the account on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the account on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the account on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_switched_timestamp": {"name": "timezone_switched_timestamp", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.256585, "compiled_code": "\n\nwith accounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n),\n\nrollup_report as (\n\n select \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\n\n),\n\nfinal as (\n\n select \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\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`"}, "model.twitter_ads.twitter_ads__campaign_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__campaign_report"], "unique_id": "model.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.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 left join accounts\n on report.account_id = accounts.account_id\n\n {{ dbt_utils.group_by(n=19) }}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__campaign_report.sql", "original_file_path": "models/twitter_ads__campaign_report.sql", "name": "twitter_ads__campaign_report", "alias": "twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "ac412006847147c6ef722fbf416456e8a94a3f0fee9eeed3b26a663e9820a3ab"}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "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": {"campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend on that date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The amount of spend, in micros, on that date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The number of URL clicks on that date.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The time the campaign will end", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "is_standard_delivery": {"name": "is_standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.227069, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nfinal as (\n\n select \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 left join accounts\n on report.account_id = accounts.account_id\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 final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`"}, "model.twitter_ads.twitter_ads__url_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__url_report"], "unique_id": "model.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.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 left join tweet_url \n on promoted_tweets.tweet_id = tweet_url.tweet_id\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n \n where tweet_url.expanded_url is not null\n \n {{ dbt_utils.group_by(n=23) }}\n\n \n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__url_report.sql", "original_file_path": "models/twitter_ads__url_report.sql", "name": "twitter_ads__url_report", "alias": "twitter_ads__url_report", "checksum": {"name": "sha256", "checksum": "67da68ceb77ee2fcd4662bcf4c2f812d0bf856ee981854042ad6684cad31140d"}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"], ["stg_twitter_ads__line_item_history"], ["stg_twitter_ads__promoted_tweet_history"], ["stg_twitter_ads__tweet"], ["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend, in micros, for the tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The URL clicks for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.296916, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`\n),\n\ntweet_url as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`\n where index = 0\n),\n\nfinal as (\n\n select \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 left join tweet_url \n on promoted_tweets.tweet_id = tweet_url.tweet_id\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n \n where tweet_url.expanded_url is not null\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)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`"}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__promoted_tweet_report"], "unique_id": "model.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.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 left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n\n {{ dbt_utils.group_by(n=21) }}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/twitter_ads__promoted_tweet_report.sql", "name": "twitter_ads__promoted_tweet_report", "alias": "twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "bfe92b3b7b4256289f1f52608543c3e81151c3e345dc27623c7e7658386058d6"}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"], ["stg_twitter_ads__line_item_history"], ["stg_twitter_ads__promoted_tweet_history"], ["stg_twitter_ads__tweet"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "The full text of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend, in micros, for the tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The URL clicks for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "promoted_tweet_status": {"name": "promoted_tweet_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the tweet's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_status": {"name": "line_item_status", "description": "The status of the tweet's line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__promoted_tweet_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.281007, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`\n),\n\nfinal as (\n\n select \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 left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\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\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`"}, "model.twitter_ads.twitter_ads__line_item_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__line_item_report"], "unique_id": "model.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.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 left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n\n {{ dbt_utils.group_by(n=29) }}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__line_item_report.sql", "original_file_path": "models/twitter_ads__line_item_report.sql", "name": "twitter_ads__line_item_report", "alias": "twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "db0229d29cf1dbd5701d716465c399fe7be337436c2887f82fc25918d98ca90b"}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"], ["stg_twitter_ads__line_item_history"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "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": {"campaign_id": {"name": "campaign_id", "description": "The ID of the line item's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the line item's campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The name of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend on that date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The amount of spend, in micros, on that date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The number of URL clicks on that date.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_status": {"name": "line_item_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the line item's related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "target_cpa": {"name": "target_cpa", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__line_item_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.246046, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nfinal as (\n\n select \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 left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\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\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`"}, "model.pinterest.pinterest_ads__url_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__url_report"], "unique_id": "model.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.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n\n -- We only want utm ads to populate this report. Therefore, we filter where url pins are populated.\n where pins.destination_url is not null\n {{ dbt_utils.group_by(22) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__url_report.sql", "original_file_path": "models/pinterest_ads__url_report.sql", "name": "pinterest_ads__url_report", "alias": "pinterest_ads__url_report", "checksum": {"name": "sha256", "checksum": "c51e0537c52c4fd4989b302759c4b8258acf569fe25ffd4047d9377d881722bf"}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"], ["stg_pinterest_ads__pin_promotion_history"], ["stg_pinterest_ads__ad_group_history"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the advertiser, campaign, ad group, and url level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1667945773.441335, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\n), \n\npins as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n\n -- We only want utm ads to populate this report. Therefore, we filter where url pins are populated.\n where pins.destination_url is not null\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 joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`"}, "model.pinterest.pinterest_ads__campaign_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__campaign_report"], "unique_id": "model.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.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 left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__campaign_report.sql", "original_file_path": "models/pinterest_ads__campaign_report.sql", "name": "pinterest_ads__campaign_report", "alias": "pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "80ef7572b29ea31a7e5866ad9a6e6bf99fc0055ef64e527a9173fa440acbdcbd"}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the advertiser and campaign level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1667945773.455827, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n),\n\nfields as (\n\n select\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 left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`"}, "model.pinterest.pinterest_ads__keyword_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__keyword_report"], "unique_id": "model.pinterest.pinterest_ads__keyword_report", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\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.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 left join ad_groups\n on keywords.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__keyword_report.sql", "original_file_path": "models/pinterest_ads__keyword_report.sql", "name": "pinterest_ads__keyword_report", "alias": "pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "0c8aed643c742107bb4abb54739f3859a8fbe68ea6082f8e7b5b814d3f36dc51"}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report"], ["stg_pinterest_ads__advertiser_history"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__ad_group_history"], ["stg_pinterest_ads__keyword_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of a keyword at the advertiser, campaign, ad group, and keyword level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword_value": {"name": "keyword_value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1667945773.470507, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\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 left join ad_groups\n on keywords.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`"}, "model.pinterest.pinterest_ads__advertiser_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__advertiser_report"], "unique_id": "model.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.date_day,\n advertisers.advertiser_name,\n report.advertiser_id,\n advertisers.advertiser_status,\n advertisers.currency_code,\n advertisers.country,\n advertisers.billing_type,\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 {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__advertiser_report.sql", "original_file_path": "models/pinterest_ads__advertiser_report.sql", "name": "pinterest_ads__advertiser_report", "alias": "pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "c1636464f5742460c31c1f5e1c83fa0f21d4985eb7faae46b3fab94444f5c7d1"}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of an advertiser on the Pinterest Ads platform.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_status": {"name": "advertiser_status", "description": "Status of the advertiser account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code which the advertiser is set up using.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_type": {"name": "billing_type", "description": "The billing type of the advertiser. Will typically be CREDIT_CARD or INVOICE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__advertiser_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1667945773.462124, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.date_day,\n advertisers.advertiser_name,\n report.advertiser_id,\n advertisers.advertiser_status,\n advertisers.currency_code,\n advertisers.country,\n advertisers.billing_type,\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 group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`"}, "model.pinterest.pinterest_ads__pin_promotion_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__pin_promotion_report"], "unique_id": "model.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.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n\n {{ dbt_utils.group_by(15) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/pinterest_ads__pin_promotion_report.sql", "name": "pinterest_ads__pin_promotion_report", "alias": "pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "2784c143da7bdc10c3f26c175533bf2a6b688624492925b0d95ebdded2a6c873"}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"], ["stg_pinterest_ads__pin_promotion_history"], ["stg_pinterest_ads__ad_group_history"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the advertiser, campaign, ad group, and pin level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Name of the pin.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "Status of the pin.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__pin_promotion_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1667945773.4809332, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\n), \n\npins as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`"}, "model.pinterest.pinterest_ads__ad_group_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest", "fqn": ["pinterest", "pinterest_ads__ad_group_report"], "unique_id": "model.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.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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "pinterest_ads__ad_group_report.sql", "original_file_path": "models/pinterest_ads__ad_group_report.sql", "name": "pinterest_ads__ad_group_report", "alias": "pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "d1304e8b32bec7251d7873aae88ed9f0bdbd754eda4fb64133ad79c8124906f6"}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report"], ["stg_pinterest_ads__advertiser_history"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the campaign, advertiser, and ad group level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Ad group creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "compiled_path": "target/compiled/pinterest/models/pinterest_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1667945773.4502258, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`"}, "model.google_ads.google_ads__keyword_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__keyword_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n criterions.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__keyword_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join criterions\n on stats.criterion_id = criterions.criterion_id\n left join ad_groups\n on criterions.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__keyword_report.sql", "original_file_path": "models/google_ads__keyword_report.sql", "name": "google_ads__keyword_report", "alias": "google_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "870db2f6365f35426d59288becfe4d2a961a59e4f96ffc5514f4604d72dfa3a9"}, "tags": [], "refs": [["stg_google_ads__keyword_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"], ["stg_google_ads__ad_group_history"], ["stg_google_ads__ad_group_criterion_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the ad group level for keywords.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "The unique identifier of the criterion being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of keyword ad being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the keyword ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The match type criteria used for the keyword ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The specific keyword text that is used.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.636259, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n criterions.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\n \n\n\n\n\n\n from stats\n left join criterions\n on stats.criterion_id = criterions.criterion_id\n left join ad_groups\n on criterions.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`"}, "model.google_ads.google_ads__campaign_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__campaign_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__campaign_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n {{ dbt_utils.group_by(8) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__campaign_report.sql", "original_file_path": "models/google_ads__campaign_report.sql", "name": "google_ads__campaign_report", "alias": "google_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "b0bd1cd3691181888cba6ff2c8247dade9fad09a62b433ccb75f3b8854a7275c"}, "tags": [], "refs": [["stg_google_ads__campaign_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of a campaign at the campaign/advertising_channel/advertising_channel_subtype level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.627458, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.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\n \n\n\n\n\n\n from stats\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`"}, "model.google_ads.google_ads__url_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__url_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.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( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_source') }} , 'google') as utm_source,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_medium') }} , 'cpc') as utm_medium,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_campaign') }} , campaigns.campaign_name) as utm_campaign,\n coalesce( {{ dbt_utils.get_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__ad_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n\n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where ads.source_final_urls is not null\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__url_report.sql", "original_file_path": "models/google_ads__url_report.sql", "name": "google_ads__url_report", "alias": "google_ads__url_report", "checksum": {"name": "sha256", "checksum": "6459719e45c5e9de881ec2035baa6bee2c3c19f1b7442c00137be54caa5c06ab"}, "tags": [], "refs": [["stg_google_ads__ad_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"], ["stg_google_ads__ad_group_history"], ["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of URLs at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The unique identifier of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.598774, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.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\n \n\n\n\n\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n\n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where ads.source_final_urls is not null\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`"}, "model.google_ads.google_ads__ad_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__ad_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__ad_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__ad_report.sql", "original_file_path": "models/google_ads__ad_report.sql", "name": "google_ads__ad_report", "alias": "google_ads__ad_report", "checksum": {"name": "sha256", "checksum": "9a1207dd98be2980e61f5c2121ed3a1fc7d8a1984b125fe1aaf46e9b1478347b"}, "tags": [], "refs": [["stg_google_ads__ad_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"], ["stg_google_ads__ad_group_history"], ["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The unique identifier of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The url which is displayed with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_final_urls": {"name": "source_final_urls", "description": "The final urls that are used within the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The status of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The type of the ad that is being served.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.620691, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.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\n \n\n\n\n\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`"}, "model.google_ads.google_ads__ad_group_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__ad_group_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__ad_group_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__ad_group_report.sql", "original_file_path": "models/google_ads__ad_group_report.sql", "name": "google_ads__ad_group_report", "alias": "google_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "7f608fbc1b314740591eb4acc64fb45bc8303cefd50c850a31caecc33a8fad23"}, "tags": [], "refs": [["stg_google_ads__ad_group_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"], ["stg_google_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the ad group level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "The status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_type": {"name": "ad_group_type", "description": "The type of ad group which is serving ads.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.6118772, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.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\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 left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n left join accounts\n on campaigns.account_id = accounts.account_id\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`"}, "model.google_ads.google_ads__account_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads", "fqn": ["google_ads", "google_ads__account_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='google_ads__account_stats_passthrough_metrics', transform = 'sum') }}\n\n from stats\n left join accounts\n on stats.account_id = accounts.account_id\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "google_ads__account_report.sql", "original_file_path": "models/google_ads__account_report.sql", "name": "google_ads__account_report", "alias": "google_ads__account_report", "checksum": {"name": "sha256", "checksum": "e16fa20ded7cc2a36a0a1eabe5ad1b0bdb16503068002078b640704ec7cc8bef"}, "tags": [], "refs": [["stg_google_ads__account_stats"], ["stg_google_ads__account_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the account level.", "columns": {"date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone which the account is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "compiled_path": "target/compiled/google_ads/models/google_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.6045592, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.date_day,\n accounts.account_name,\n accounts.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\n \n\n\n\n\n\n from stats\n left join accounts\n on stats.account_id = accounts.account_id\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`"}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__creative_history"], "unique_id": "model.linkedin_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 from base\n\n), fields as (\n\n select\n id as creative_id,\n campaign_id,\n type,\n cast(version_tag as numeric) as version_tag,\n status,\n click_uri,\n call_to_action_label_type,\n cast(last_modified_time as {{ dbt_utils.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt_utils.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n), url_fields as (\n\n select \n *,\n {{ dbt_utils.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 {{ dbt_utils.get_url_parameter('click_uri', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('click_uri', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('click_uri', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('click_uri', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('click_uri', 'utm_term') }} as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__creative_history.sql", "original_file_path": "models/stg_linkedin_ads__creative_history.sql", "name": "stg_linkedin_ads__creative_history", "alias": "stg_linkedin_ads__creative_history", "checksum": {"name": "sha256", "checksum": "f623694641968fd0e8a84f3c8c74b35ffd0fd57c884979b17208903f2aa0c4c6"}, "tags": [], "refs": [["stg_linkedin_ads__creative_history_tmp"], ["stg_linkedin_ads__creative_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a 'version' of a creative.", "columns": {"creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign the creative belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text with Sponsored Link to landing page on your site.\nSPONSORED_STATUS_UPDATE - Sponsored status update from a profile page.\nSPONSORED_INMAILS - Single message ad delivered to the member's inbox\nSPONSORED_MESSAGE - Conversation ad containing a tree of pre-determined messages delivered to the member's inbox\nSPONSORED_VIDEO - Sponsored videos.\nSPONSORED_UPDATE_CAROUSEL - Sponsored Carousels\nFOLLOW_COMPANY_V2 - Dynamic Follow Ad\nSPOTLIGHT_V2 - Dynamic Spotlight Ad\nJOBS_V2 - Dynamic Job Ad\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the creative.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "call_to_action_label_type": {"name": "call_to_action_label_type", "description": "The labeled call-to-action on this ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the cretive.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__creative_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945773.737868, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history_tmp`\n\n), macro as (\n\n select \n \n cast(null as \n string\n) as \n \n call_to_action_label_type\n \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 \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 status\n \n as \n \n status\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n from base\n\n), fields as (\n\n select\n id as creative_id,\n campaign_id,\n type,\n cast(version_tag as numeric) as version_tag,\n status,\n click_uri,\n call_to_action_label_type,\n cast(last_modified_time as \n timestamp\n) as last_modified_at,\n cast(created_time as \n timestamp\n) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n), url_fields as (\n\n select \n *,\n \n\n \n split(\n click_uri,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`"}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_history"], "unique_id": "model.linkedin_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 from base\n\n), fields as (\n\n select \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_utils.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt_utils.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt_utils.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt_utils.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__campaign_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_history.sql", "name": "stg_linkedin_ads__campaign_history", "alias": "stg_linkedin_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "2a540f81b3e6d15610578e763e2f6e0c6fe02a28e2b0c80fece47e1152649104"}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history_tmp"], ["stg_linkedin_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a 'version' of a campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign belongs to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945773.7520561, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) 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 \n string\n) as \n \n creative_selection\n \n , \n cast(null as \n float64\n) as \n \n daily_budget_amount\n \n , \n cast(null as \n string\n) as \n \n daily_budget_currency_code\n \n , \n cast(null as \n string\n) 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 \n string\n) as \n \n locale_country\n \n , \n cast(null as \n string\n) as \n \n locale_language\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as \n string\n) as \n \n objective_type\n \n , \n cast(null as boolean) as \n \n offsite_delivery_enabled\n \n , \n cast(null as \n string\n) as \n \n optimization_target_type\n \n , \n cast(null as \n timestamp\n) as \n \n run_schedule_end\n \n , \n cast(null as \n timestamp\n) as \n \n run_schedule_start\n \n , \n cast(null as \n string\n) as \n \n status\n \n , \n cast(null as \n string\n) as \n \n type\n \n , \n cast(null as \n float64\n) as \n \n unit_cost_amount\n \n , \n cast(null as \n string\n) 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 from base\n\n), fields as (\n\n select \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 \n timestamp\n) as run_schedule_start_at,\n cast(run_schedule_end as \n timestamp\n) as run_schedule_end_at,\n cast(last_modified_time as \n timestamp\n) as last_modified_at,\n cast(created_time as \n timestamp\n) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_campaign_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_campaign"], "unique_id": "model.linkedin_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 from base\n),\n\nfields as (\n \n select \n {{ dbt_utils.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 {{ fivetran_utils.fill_pass_through_columns('linkedin_ads__campaign_passthrough_metrics') }}\n\n from macro\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_campaign.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "alias": "stg_linkedin_ads__ad_analytics_by_campaign", "checksum": {"name": "sha256", "checksum": "16da55a16031183f2ea16088288483b310aa52fae4b411eaa0040b828536e669"}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_campaign_tmp"], ["stg_linkedin_ads__ad_analytics_by_campaign_tmp"]], "sources": [], "metrics": [], "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 creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945773.7272909, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfields as (\n \n select \n timestamp_trunc(\n cast(day as timestamp),\n day\n ) as date_day,\n campaign_id,\n clicks,\n impressions,\n \n cost_in_usd as cost\n \n\n \n\n\n\n\n\n from macro\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_campaign_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_group_history"], "unique_id": "model.linkedin_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 from base\n\n), fields as (\n\n select \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_utils.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt_utils.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt_utils.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt_utils.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__campaign_group_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_group_history.sql", "name": "stg_linkedin_ads__campaign_group_history", "alias": "stg_linkedin_ads__campaign_group_history", "checksum": {"name": "sha256", "checksum": "32f71d5e3d5e1e5d644910fc5f2ff848d47d5735727cf6e845aeb13e6dc9cf21"}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history_tmp"], ["stg_linkedin_ads__campaign_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a 'version' of a campaign group.", "columns": {"campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign group belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945773.758364, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) as \n \n run_schedule_end\n \n , \n cast(null as \n timestamp\n) as \n \n run_schedule_start\n \n , \n cast(null as \n string\n) as \n \n status\n \n \n\n\n from base\n\n), fields as (\n\n select \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 \n timestamp\n) as run_schedule_start_at,\n cast(run_schedule_end as \n timestamp\n) as run_schedule_end_at,\n cast(last_modified_time as \n timestamp\n) as last_modified_at,\n cast(created_time as \n timestamp\n) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`"}, "model.linkedin_source.stg_linkedin_ads__account_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp", "model.linkedin_source.stg_linkedin_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__account_history"], "unique_id": "model.linkedin_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 from base\n\n), fields as (\n\n select \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_utils.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt_utils.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__account_history.sql", "original_file_path": "models/stg_linkedin_ads__account_history.sql", "name": "stg_linkedin_ads__account_history", "alias": "stg_linkedin_ads__account_history", "checksum": {"name": "sha256", "checksum": "f17a77d24eec129aee7da0dcf73c3b595b93c7c324a08339f5a793a862e4fe2e"}, "tags": [], "refs": [["stg_linkedin_ads__account_history_tmp"], ["stg_linkedin_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a 'version' of an account.", "columns": {"account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945773.763958, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) as \n \n status\n \n , \n cast(null as \n string\n) as \n \n type\n \n , \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n from base\n\n), fields as (\n\n select \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 \n timestamp\n) as last_modified_at,\n cast(created_time as \n timestamp\n) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_creative_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_creative"], "unique_id": "model.linkedin_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 from base\n\n), fields as (\n\n select\n {{ dbt_utils.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 {{ fivetran_utils.fill_pass_through_columns('linkedin_ads__creative_passthrough_metrics') }}\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_creative.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_creative.sql", "name": "stg_linkedin_ads__ad_analytics_by_creative", "alias": "stg_linkedin_ads__ad_analytics_by_creative", "checksum": {"name": "sha256", "checksum": "69a6e735809508cf540f0063b6e905349395baf86a70c72faaef807829ae8c04"}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_creative_tmp"], ["stg_linkedin_ads__ad_analytics_by_creative_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_creative.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945773.7237399, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n from base\n\n), fields as (\n\n select\n timestamp_trunc(\n cast(day as timestamp),\n day\n ) as date_day,\n creative_id,\n clicks, \n impressions,\n \n cost_in_usd as cost\n \n\n \n\n\n\n\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.ad_analytics_by_creative"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_creative_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('ad_analytics_by_creative') }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "alias": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "checksum": {"name": "sha256", "checksum": "b1140ca3ef37dcf51382d1d423a866f8e99ab568e995419aaa0d6cc46ba9e2c2"}, "tags": [], "refs": [], "sources": [["linkedin", "ad_analytics_by_creative"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945768.48257, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_creative_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative_tmp`"}, "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_history_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "tmp/stg_linkedin_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "name": "stg_linkedin_ads__campaign_history_tmp", "alias": "stg_linkedin_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "cebe89ef38c2b2a3e4c78f3a30350598b00910af0597c348f07c9e2d29591441"}, "tags": [], "refs": [], "sources": [["linkedin", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945768.494109, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history_tmp`"}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__account_history_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('account_history') }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "tmp/stg_linkedin_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__account_history_tmp.sql", "name": "stg_linkedin_ads__account_history_tmp", "alias": "stg_linkedin_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "d7ffa4b7ad250c8643b99abf7d1ee1099a1b01e847424247f469fb8b49bac5b9"}, "tags": [], "refs": [], "sources": [["linkedin", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945768.507097, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history_tmp`"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.campaign_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_group_history_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_group_history') }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_linkedin_ads__campaign_group_history_tmp", "alias": "stg_linkedin_ads__campaign_group_history_tmp", "checksum": {"name": "sha256", "checksum": "704cfe15aec2c0f1de75b8c78a082b45ae6fa6a03198dc210d8eeacb8bd643b8"}, "tags": [], "refs": [], "sources": [["linkedin", "campaign_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945768.517976, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history_tmp`"}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__creative_history_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('creative_history') }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "tmp/stg_linkedin_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "name": "stg_linkedin_ads__creative_history_tmp", "alias": "stg_linkedin_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "0b886b1ffe53a073e6123a79cc2dd4b0576178d82e38be84fddc1f70e8b3d0fc"}, "tags": [], "refs": [], "sources": [["linkedin", "creative_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945768.5291169, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history_tmp`"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.ad_analytics_by_campaign"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads_source", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_analytics_by_campaign') }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "alias": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "checksum": {"name": "sha256", "checksum": "03a126189ee0a2fe1d514ff02883403a1c9e8d8f9fe928262c338b61246cd7ef"}, "tags": [], "refs": [], "sources": [["linkedin", "ad_analytics_by_campaign"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1667945768.5398169, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_campaign_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign_tmp`"}, "model.facebook_ads.facebook_ads__url_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__url_report"], "unique_id": "model.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.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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id \n where creatives.url is not null\n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__url_report.sql", "original_file_path": "models/facebook_ads__url_report.sql", "name": "facebook_ads__url_report", "alias": "facebook_ads__url_report", "checksum": {"name": "sha256", "checksum": "10c9e21c2dd8784f9e08d760bced13633256fa77a516234ee971c3c6d1aa97c6"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["int_facebook_ads__creative_history"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__ad_history"], ["stg_facebook_ads__ad_set_history"], ["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook ad at the URL level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the related ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the related ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "The name of the related creative.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.9270349, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\ncreatives as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`int_facebook_ads__creative_history`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id \n where creatives.url is not null\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 joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`"}, "model.facebook_ads.facebook_ads__url_tags": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads.get_url_tags_query"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__url_tags"], "unique_id": "model.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 _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", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__url_tags.sql", "original_file_path": "models/facebook_ads__url_tags.sql", "name": "facebook_ads__url_tags", "alias": "facebook_ads__url_tags", "checksum": {"name": "sha256", "checksum": "94dcb7faf1441b289fcec62f3e81794a05a34cf10bf2955e8a8f8c18555f8ad2"}, "tags": [], "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "description": "Each record is a unique combination of creative_id and corresponding key, value, type contained in the url_tags field", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "The unique fivetran ID for this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The associated creative_id for this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "key": {"name": "key", "description": "The url tag object name e.g. utm_source associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The value assigned to the url tag object associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type assigned to the url tag object e.g. 'AD_VIDEO'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_tags.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.953067, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`\n where is_most_recent_record = true\n), \n\nrequired_fields as (\n\n select\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 _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 _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 _fivetran_id,\n creative_id,\n json_extract_scalar(url_tag_element, '$.key') as key,\n json_extract_scalar(url_tag_element, '$.value') as value,\n json_extract_scalar(url_tag_element, '$.type') as type\n from unnested\n )\n\n \n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_tags`"}, "model.facebook_ads.facebook_ads__campaign_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__campaign_report"], "unique_id": "model.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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__campaign_report.sql", "original_file_path": "models/facebook_ads__campaign_report.sql", "name": "facebook_ads__campaign_report", "alias": "facebook_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "4bec447c9d29e7a26180ce14a68d0a1217d60f0d24bed7c89716b3520c053a75"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__campaign_history"], ["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook campaign.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.945447, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`"}, "model.facebook_ads.facebook_ads__account_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__account_report"], "unique_id": "model.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.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 {{ dbt_utils.group_by(8) }}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__account_report.sql", "original_file_path": "models/facebook_ads__account_report.sql", "name": "facebook_ads__account_report", "alias": "facebook_ads__account_report", "checksum": {"name": "sha256", "checksum": "845cdb5118e536d66d515c2e11eee71d380e406ba4f443bae4828ec70362841e"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.949425, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`"}, "model.facebook_ads.facebook_ads__ad_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__ad_report"], "unique_id": "model.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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__ad_report.sql", "original_file_path": "models/facebook_ads__ad_report.sql", "name": "facebook_ads__ad_report", "alias": "facebook_ads__ad_report", "checksum": {"name": "sha256", "checksum": "36088a9abc521347aacc7d9bf0f56fd712441e94a2bc66ef334f85ff8f4761ea"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__campaign_history"], ["stg_facebook_ads__ad_set_history"], ["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook ad.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the related ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the related ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.9342499, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`"}, "model.facebook_ads.facebook_ads__ad_set_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "facebook_ads__ad_set_report"], "unique_id": "model.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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "facebook_ads__ad_set_report.sql", "original_file_path": "models/facebook_ads__ad_set_report.sql", "name": "facebook_ads__ad_set_report", "alias": "facebook_ads__ad_set_report", "checksum": {"name": "sha256", "checksum": "d1b0e28fe240e405fe8f746c38d4fad26a8d43e10dcd6f375617b78095f87e01"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__campaign_history"], ["stg_facebook_ads__ad_set_history"], ["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Facebook ad set.", "columns": {"date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_set_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1667945773.940272, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.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 left join ads \n on report.ad_id = ads.ad_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`"}, "model.facebook_ads.int_facebook_ads__creative_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history", "model.facebook_ads.facebook_ads__url_tags"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads", "fqn": ["facebook_ads", "intermediate", "int_facebook_ads__creative_history"], "unique_id": "model.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 _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\n\n), \n\nfields as (\n\n select\n base._fivetran_id,\n base.creative_id,\n base.account_id,\n base.creative_name,\n {{ url_field }} as url,\n {{ dbt_utils.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, {{ dbt_utils.get_url_parameter(url_field, 'utm_source') }}) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, {{ dbt_utils.get_url_parameter(url_field, 'utm_medium') }}) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, {{ dbt_utils.get_url_parameter(url_field, 'utm_campaign') }}) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, {{ dbt_utils.get_url_parameter(url_field, 'utm_content') }}) as utm_content,\n coalesce(url_tags_pivoted.utm_term, {{ dbt_utils.get_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.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "intermediate/int_facebook_ads__creative_history.sql", "original_file_path": "models/intermediate/int_facebook_ads__creative_history.sql", "name": "int_facebook_ads__creative_history", "alias": "int_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "8ae43e8b153e019583a0b862ba65491fe953552c9a51ab478c545a8b52ef1d65"}, "tags": [], "refs": [["stg_facebook_ads__creative_history"], ["facebook_ads__url_tags"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/intermediate/int_facebook_ads__creative_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "view", "enabled": true}, "created_at": 1667945768.686176, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_tags`\n), \n\nurl_tags_pivoted as (\n\n select \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\n\n), \n\nfields as (\n\n select\n base._fivetran_id,\n base.creative_id,\n base.account_id,\n base.creative_name,\n coalesce(page_link,template_page_link) as url,\n \n\n \n split(\n coalesce(page_link,template_page_link),\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base._fivetran_id = url_tags_pivoted._fivetran_id\n and base.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`int_facebook_ads__creative_history`"}, "model.snapchat_ads.snapchat_ads__ad_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__ad_report"], "unique_id": "model.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 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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join account\n on creatives.ad_account_id = account.ad_account_id\n \n {{ dbt_utils.group_by(6) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__ad_report.sql", "original_file_path": "models/snapchat_ads__ad_report.sql", "name": "snapchat_ads__ad_report", "alias": "snapchat_ads__ad_report", "checksum": {"name": "sha256", "checksum": "883a24dba7248457561b24e845d2e8beec4fd361a2a8aef051b5cb01305f48fe"}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"], ["snapchat_ads__creative_history_prep"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Snapchat ad account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.048767, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n),ad_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\n where is_most_recent_record = true\n\n), aggregated as (\n\n select\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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join account\n on creatives.ad_account_id = account.ad_account_id\n \n group by 1,2,3,4,5,6\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`"}, "model.snapchat_ads.snapchat_ads__url_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__url_report"], "unique_id": "model.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 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 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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join account\n on creatives.ad_account_id = account.ad_account_id\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 {{ dbt_utils.group_by(14) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__url_report.sql", "original_file_path": "models/snapchat_ads__url_report.sql", "name": "snapchat_ads__url_report", "alias": "snapchat_ads__url_report", "checksum": {"name": "sha256", "checksum": "93f0566f1d7ac1e43142e137c3453bfde44a9eba0454e0ca8f69a132c8512e69"}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"], ["snapchat_ads__creative_history_prep"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__ad_history"], ["stg_snapchat_ads__ad_squad_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of Snapchat ads that leverage urls.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.07123, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n),ad_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\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 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 left join creatives\n on ads.creative_id = creatives.creative_id\n left join account\n on creatives.ad_account_id = account.ad_account_id\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 group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`"}, "model.snapchat_ads.snapchat_ads__account_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__account_report"], "unique_id": "model.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 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 left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n\n {{ dbt_utils.group_by(4) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__account_report.sql", "original_file_path": "models/snapchat_ads__account_report.sql", "name": "snapchat_ads__account_report", "alias": "snapchat_ads__account_report", "checksum": {"name": "sha256", "checksum": "712da861e6b20cf879f1f5c936329cbfaf3a0e98728c707d692405b5629df197"}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__ad_history"], ["stg_snapchat_ads__ad_squad_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Snapchat ad account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.043145, "compiled_code": "\n\nwith ad_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\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 left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n\n group by 1,2,3,4\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`"}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__ad_squad_report"], "unique_id": "model.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 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 left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n \n {{ dbt_utils.group_by(8) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__ad_squad_report.sql", "original_file_path": "models/snapchat_ads__ad_squad_report.sql", "name": "snapchat_ads__ad_squad_report", "alias": "snapchat_ads__ad_squad_report", "checksum": {"name": "sha256", "checksum": "6d33fd85d1fc074fd8ba3f52b028d3b6f97d8e33c77bcd1fa5795527170a065a"}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__ad_squad_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Snapchat ad squad.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_squad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.0613718, "compiled_code": "\n\nwith ad_squad_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\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 left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n \n group by 1,2,3,4,5,6,7,8\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`"}, "model.snapchat_ads.snapchat_ads__campaign_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "snapchat_ads__campaign_report"], "unique_id": "model.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 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 left join account\n on campaigns.ad_account_id = account.ad_account_id\n \n {{ dbt_utils.group_by(6) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "snapchat_ads__campaign_report.sql", "original_file_path": "models/snapchat_ads__campaign_report.sql", "name": "snapchat_ads__campaign_report", "alias": "snapchat_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "37a0ae79a3b9a6455f3c7f6d5c83ca1ab54ae0fc2b2c103c981a43e0744fdc88"}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Snapchat campaign.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.054563, "compiled_code": "\n\nwith campaign_hourly as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\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 left join account\n on campaigns.ad_account_id = account.ad_account_id\n \n group by 1,2,3,4,5,6\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`"}, "model.snapchat_ads.snapchat_ads__creative_history_prep": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads", "fqn": ["snapchat_ads", "intermediate", "snapchat_ads__creative_history_prep"], "unique_id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n {{ dbt_utils.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, {{ dbt_utils.get_url_parameter('base.url', 'utm_source') }}) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, {{ dbt_utils.get_url_parameter('base.url', 'utm_medium') }}) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, {{ dbt_utils.get_url_parameter('base.url', 'utm_campaign') }}) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, {{ dbt_utils.get_url_parameter('base.url', 'utm_content') }}) as utm_content,\n coalesce(url_tags_pivoted.utm_term, {{ dbt_utils.get_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\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "intermediate/snapchat_ads__creative_history_prep.sql", "original_file_path": "models/intermediate/snapchat_ads__creative_history_prep.sql", "name": "snapchat_ads__creative_history_prep", "alias": "snapchat_ads__creative_history_prep", "checksum": {"name": "sha256", "checksum": "9c74fb20c4946336930dc47441e208429f3e23b6a066ff0ee0a57d9e186f461d"}, "tags": [], "refs": [["stg_snapchat_ads__creative_history"], ["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/intermediate/snapchat_ads__creative_history_prep.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "ephemeral", "enabled": true}, "created_at": 1667945768.8633049, "compiled_code": "\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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\n\n), fields as (\n\n select\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_group_stats"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select\n customer_id as account_id, \n date as date_day, \n cast(id as {{ dbt_utils.type_string() }}) as ad_group_id, \n campaign_id, \n device,\n ad_network_type,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__ad_group_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_group_stats.sql", "original_file_path": "models/stg_google_ads__ad_group_stats.sql", "name": "stg_google_ads__ad_group_stats", "alias": "stg_google_ads__ad_group_stats", "checksum": {"name": "sha256", "checksum": "ff340e8fdd90ef554efa107f80a6a328add2c814ba404cba67ec7d262bcca783"}, "tags": [], "refs": [["stg_google_ads__ad_group_stats_tmp"], ["stg_google_ads__ad_group_stats_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of an ad group in Google Ads broken down to the ad network and device type.", "columns": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.200949, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select\n customer_id as account_id, \n date as date_day, \n cast(id as \n string\n) as ad_group_id, \n campaign_id, \n device,\n ad_network_type,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`"}, "model.google_ads_source.stg_google_ads__account_stats": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_account_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats_tmp", "model.google_ads_source.stg_google_ads__account_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__account_stats"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day,\n ad_network_type,\n device,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__account_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__account_stats.sql", "original_file_path": "models/stg_google_ads__account_stats.sql", "name": "stg_google_ads__account_stats", "alias": "stg_google_ads__account_stats", "checksum": {"name": "sha256", "checksum": "ab5bb273d256a42be530160f2c20aa597ff974ad43e5fdbd20046f6f0699ef7f"}, "tags": [], "refs": [["stg_google_ads__account_stats_tmp"], ["stg_google_ads__account_stats_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of an account in Google Ads broken down to the ad network and device type.", "columns": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.217154, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day,\n ad_network_type,\n device,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`"}, "model.google_ads_source.stg_google_ads__ad_group_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history_tmp", "model.google_ads_source.stg_google_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_group_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.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 id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_group_history.sql", "original_file_path": "models/stg_google_ads__ad_group_history.sql", "name": "stg_google_ads__ad_group_history", "alias": "stg_google_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "214aad514e0f9d177480048edeff8df92a2ba03ccb11e534d9d479729a6c07f2"}, "tags": [], "refs": [["stg_google_ads__ad_group_history_tmp"], ["stg_google_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an ad group in Google Ads.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_type": {"name": "ad_group_type", "description": "The type of the ad group in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.1656399, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n string\n) 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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_history`"}, "model.google_ads_source.stg_google_ads__ad_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history_tmp", "model.google_ads_source.stg_google_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n cast(ad_group_id as {{ dbt_utils.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 id, ad_group_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\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_utils.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_utils.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 {{ dbt_utils.get_url_parameter('final_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('final_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('final_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('final_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('final_url', 'utm_term') }} as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_history.sql", "original_file_path": "models/stg_google_ads__ad_history.sql", "name": "stg_google_ads__ad_history", "alias": "stg_google_ads__ad_history", "checksum": {"name": "sha256", "checksum": "f7890632b4c9b50e2f24af70746c04236154f6fa053d475ab3de00673b2e1fde"}, "tags": [], "refs": [["stg_google_ads__ad_history_tmp"], ["stg_google_ads__ad_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The display url of the ad that is being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The type of the ad in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "Status of the Ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.1755478, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(ad_group_id as \n string\n) 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 id, ad_group_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n),\n\nfinal_urls as (\n\n select \n *,\n --Extract the first url within the list of urls provided within the final_urls field\n \n\n \n split(\n final_urls,\n ','\n )[safe_offset(0)]\n \n\n as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n \n\n \n split(\n final_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n final_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`"}, "model.google_ads_source.stg_google_ads__keyword_stats": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_keyword_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats_tmp", "model.google_ads_source.stg_google_ads__keyword_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__keyword_stats"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n _fivetran_id as keyword_id,\n customer_id as account_id, \n date as date_day, \n cast(ad_group_id as {{ dbt_utils.type_string() }}) as ad_group_id,\n ad_group_criterion_criterion_id as criterion_id,\n campaign_id, \n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__keyword_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__keyword_stats.sql", "original_file_path": "models/stg_google_ads__keyword_stats.sql", "name": "stg_google_ads__keyword_stats", "alias": "stg_google_ads__keyword_stats", "checksum": {"name": "sha256", "checksum": "a830e91a86172951723aa343c40dab2e5d5df423d98986d1b401c087352a3bef"}, "tags": [], "refs": [["stg_google_ads__keyword_stats_tmp"], ["stg_google_ads__keyword_stats_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a keyword in Google Ads.", "columns": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The unique ID of the keyword record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "Reference to the ad group criterion used for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__keyword_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.212391, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n _fivetran_id as keyword_id,\n customer_id as account_id, \n date as date_day, \n cast(ad_group_id as \n string\n) as ad_group_id,\n ad_group_criterion_criterion_id as criterion_id,\n campaign_id, \n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`"}, "model.google_ads_source.stg_google_ads__ad_stats": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string", "macro.dbt_utils.split_part", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats_tmp", "model.google_ads_source.stg_google_ads__ad_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_stats"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day, \n {% if target.type == 'spark' %}\n coalesce(cast(ad_group_id as {{ dbt_utils.type_string() }}), split(ad_group,'adGroups/')[1]) as ad_group_id,\n {% else %}\n coalesce(cast(ad_group_id as {{ dbt_utils.type_string() }}), {{ dbt_utils.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 clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__ad_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_stats.sql", "original_file_path": "models/stg_google_ads__ad_stats.sql", "name": "stg_google_ads__ad_stats", "alias": "stg_google_ads__ad_stats", "checksum": {"name": "sha256", "checksum": "e817b26774230a69638f8d2f170ce8f341cc218a68937336a12184a2c4740ab1"}, "tags": [], "refs": [["stg_google_ads__ad_stats_tmp"], ["stg_google_ads__ad_stats_tmp"]], "sources": [], "metrics": [], "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": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.18239, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day, \n \n coalesce(cast(ad_group_id as \n string\n), \n\n \n split(\n ad_group,\n 'adGroups/'\n )[safe_offset(1)]\n \n\n) as ad_group_id,\n \n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_criterion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp", "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__ad_group_criterion_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n id as criterion_id,\n cast(ad_group_id as {{ dbt_utils.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 id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__ad_group_criterion_history.sql", "original_file_path": "models/stg_google_ads__ad_group_criterion_history.sql", "name": "stg_google_ads__ad_group_criterion_history", "alias": "stg_google_ads__ad_group_criterion_history", "checksum": {"name": "sha256", "checksum": "81f24fde65690bba93cf8abfcc843f512ffea96e7ad37db7fde2096553f07c03"}, "tags": [], "refs": [["stg_google_ads__ad_group_criterion_history_tmp"], ["stg_google_ads__ad_group_criterion_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a historical version of an ad group criterion in Google Ads.", "columns": {"criterion_id": {"name": "criterion_id", "description": "Unique identifier of the ad group criterion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_campaign_id": {"name": "base_campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of ad group criterion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group criterion.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_criterion_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.195214, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n from base\n),\n\nfinal as (\n \n select \n id as criterion_id,\n cast(ad_group_id as \n string\n) 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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_criterion_history`"}, "model.google_ads_source.stg_google_ads__campaign_stats": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_campaign_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats_tmp", "model.google_ads_source.stg_google_ads__campaign_stats_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__campaign_stats"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day, \n id as campaign_id, \n ad_network_type,\n device,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n {{ fivetran_utils.fill_pass_through_columns('google_ads__campaign_stats_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__campaign_stats.sql", "original_file_path": "models/stg_google_ads__campaign_stats.sql", "name": "stg_google_ads__campaign_stats", "alias": "stg_google_ads__campaign_stats", "checksum": {"name": "sha256", "checksum": "4d8f1522db5e641f065131caf87cc3d4bb2895837d1da1adb9373e6f6e3187a3"}, "tags": [], "refs": [["stg_google_ads__campaign_stats_tmp"], ["stg_google_ads__campaign_stats_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a campaign in Google Ads broken down to the ad network and device type.", "columns": {"account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_stats.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.206843, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n customer_id as account_id, \n date as date_day, \n id as campaign_id, \n ad_network_type,\n device,\n clicks, \n cost_micros / 1000000.0 as spend, \n impressions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`"}, "model.google_ads_source.stg_google_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history_tmp", "model.google_ads_source.stg_google_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__campaign_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__campaign_history.sql", "original_file_path": "models/stg_google_ads__campaign_history.sql", "name": "stg_google_ads__campaign_history", "alias": "stg_google_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "48aacc738e5cbe391f544a5e16f40107b193fb5e84e3b7f1a3673cfe51e42bed"}, "tags": [], "refs": [["stg_google_ads__campaign_history_tmp"], ["stg_google_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a campaign in Google Ads.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "Status of the ads and how they are currently being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "General status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.1896691, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history`"}, "model.google_ads_source.stg_google_ads__account_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.google_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.google_ads_source.stg_google_ads__account_history_tmp", "model.google_ads_source.stg_google_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "stg_google_ads__account_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "stg_google_ads__account_history.sql", "original_file_path": "models/stg_google_ads__account_history.sql", "name": "stg_google_ads__account_history", "alias": "stg_google_ads__account_history", "checksum": {"name": "sha256", "checksum": "343005eab065e14bf0ee42e8efc615b9397add7d783d1e2e77158d2781f253bb"}, "tags": [], "refs": [["stg_google_ads__account_history_tmp"], ["stg_google_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an account in Google Ads.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency of the spend reported.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone of the account ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945774.1605902, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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\n\n \n from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`"}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.account_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_stats') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__account_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_stats_tmp.sql", "name": "stg_google_ads__account_stats_tmp", "alias": "stg_google_ads__account_stats_tmp", "checksum": {"name": "sha256", "checksum": "64986ed4826b8e88bc9cbc3bde6840448bc855e6084bc3d12da016addb34dafa"}, "tags": [], "refs": [], "sources": [["google_ads", "account_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.253817, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats_tmp`"}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_history') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_google_ads__ad_group_history_tmp", "alias": "stg_google_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "663aad714cdf84b0a06475835364f36ffca4392b342ce434ea9ac3b38b96e548"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.265732, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_history_tmp`"}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.campaign_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_stats') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__campaign_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_stats_tmp.sql", "name": "stg_google_ads__campaign_stats_tmp", "alias": "stg_google_ads__campaign_stats_tmp", "checksum": {"name": "sha256", "checksum": "ac4bf76095a969b6cc66bdfc6bf1e53e555be2fee1eb08c867e0489a910ab491"}, "tags": [], "refs": [], "sources": [["google_ads", "campaign_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.277554, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats_tmp`"}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_stats') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__ad_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_stats_tmp.sql", "name": "stg_google_ads__ad_stats_tmp", "alias": "stg_google_ads__ad_stats_tmp", "checksum": {"name": "sha256", "checksum": "69fac90225ad40ce593bc7a83bea96739e0018b2d4b90c4dd7be0555b980c316"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.290882, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats_tmp`"}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_history_tmp.sql", "name": "stg_google_ads__campaign_history_tmp", "alias": "stg_google_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "1ca8c796342ffe6e1c664697a81bbe0787b3999df6e155e114aabb3f85df6ac6"}, "tags": [], "refs": [], "sources": [["google_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.3028202, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history_tmp`"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_criterion_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_criterion_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_criterion_history') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_google_ads__ad_group_criterion_history_tmp", "alias": "stg_google_ads__ad_group_criterion_history_tmp", "checksum": {"name": "sha256", "checksum": "82cd3b85a00f84d6433d30fb5a2c6b6882381c4200bdad44fd5a761219418b48"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_group_criterion_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.3148422, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_criterion_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_criterion_history_tmp`"}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_stats') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_google_ads__ad_group_stats_tmp", "alias": "stg_google_ads__ad_group_stats_tmp", "checksum": {"name": "sha256", "checksum": "df5f65c5bda3d22cada3c02ded54c4eb2a7e13ef2f1bc6169fed1f0c03fe761e"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_group_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.3266811, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats_tmp`"}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.keyword_stats"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__keyword_stats_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_stats') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__keyword_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__keyword_stats_tmp.sql", "name": "stg_google_ads__keyword_stats_tmp", "alias": "stg_google_ads__keyword_stats_tmp", "checksum": {"name": "sha256", "checksum": "4568538a6402c68eb5e94f0e9f17373b8473723218597ad8990553524dc31691"}, "tags": [], "refs": [], "sources": [["google_ads", "keyword_stats"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__keyword_stats_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.340857, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_keyword_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats_tmp`"}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_history') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_history_tmp.sql", "name": "stg_google_ads__ad_history_tmp", "alias": "stg_google_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "237e4cca801b026f9d0aaeff2130bf3d2f3c9050e364406b5b59ba18db547166"}, "tags": [], "refs": [], "sources": [["google_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.353159, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history_tmp`"}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "google_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_google_ads_source", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_history_tmp"], "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_history') }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "tmp/stg_google_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_history_tmp.sql", "name": "stg_google_ads__account_history_tmp", "alias": "stg_google_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "b5f8dd1b72ffdcf3bd32a1c0ab81a33aed0f43b042998b6d9cf57605a4226386"}, "tags": [], "refs": [], "sources": [["google_ads", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945769.365181, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history_tmp`"}, "model.apple_search_ads.apple_search_ads__ad_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__ad_report"], "unique_id": "model.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.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 join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n join campaign \n on report.campaign_id = campaign.campaign_id\n join organization \n on ad.organization_id = organization.organization_id\n {{ dbt_utils.group_by(11) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__ad_report.sql", "original_file_path": "models/apple_search_ads__ad_report.sql", "name": "apple_search_ads__ad_report", "alias": "apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "9be99b8581d2c85b4b11327ae3eef34d26121ed866e5762ff7f627b2c24b63a9"}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"], ["stg_apple_search_ads__ad_history"], ["stg_apple_search_ads__ad_group_history"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each ad.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The status of the ad associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on ad group on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of ad group in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on ad group in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.5472372, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\n), \n\nad as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n join campaign \n on report.campaign_id = campaign.campaign_id\n join organization \n on ad.organization_id = organization.organization_id\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`"}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__ad_group_report"], "unique_id": "model.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.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 join campaign \n on ad_group.campaign_id = campaign.campaign_id\n join organization \n on ad_group.organization_id = organization.organization_id\n {{ dbt_utils.group_by(11) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__ad_group_report.sql", "original_file_path": "models/apple_search_ads__ad_group_report.sql", "name": "apple_search_ads__ad_group_report", "alias": "apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "a1edd5d4e81de3dadca268c67fc1bee311cab1edc7efe48a494c7017c7acdc80"}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report"], ["stg_apple_search_ads__ad_group_history"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each ad group.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The start timestamp for this ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The end timestamp for this ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on ad group on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of ad group in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on ad group in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.537309, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report`\n), \n\nad_group as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join campaign \n on ad_group.campaign_id = campaign.campaign_id\n join organization \n on ad_group.organization_id = organization.organization_id\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`"}, "model.apple_search_ads.apple_search_ads__keyword_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__keyword_report"], "unique_id": "model.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.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 join ad_group \n on keyword.ad_group_id = ad_group.ad_group_id\n join campaign \n on ad_group.campaign_id = campaign.campaign_id\n join organization \n on ad_group.organization_id = organization.organization_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__keyword_report.sql", "original_file_path": "models/apple_search_ads__keyword_report.sql", "name": "apple_search_ads__keyword_report", "alias": "apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "91250ca8167dc8fee98582ff093d56a498b854e5c66a51325076191016bfb0e7"}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report"], ["stg_apple_search_ads__keyword_history"], ["stg_apple_search_ads__ad_group_history"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each creative set.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Creative set name associatd with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "Creative set ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_status": {"name": "keyword_status", "description": "The status of the keyword associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on keyword on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of keyword in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on keyword in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.566595, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\n), \n\nkeyword as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join ad_group \n on keyword.ad_group_id = ad_group.ad_group_id\n join campaign \n on ad_group.campaign_id = campaign.campaign_id\n join organization \n on ad_group.organization_id = organization.organization_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`"}, "model.apple_search_ads.apple_search_ads__search_term_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__search_term_report"], "unique_id": "model.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.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 join organization \n on campaign.organization_id = organization.organization_id\n where report.search_term_text is not null\n {{ dbt_utils.group_by(12) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__search_term_report.sql", "original_file_path": "models/apple_search_ads__search_term_report.sql", "name": "apple_search_ads__search_term_report", "alias": "apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "4827d710dac6b2e632dcf3ba421a8166d719d1ae59e98128736b8689cf4039a1"}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each search term, only includes records with search term values.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "Search term text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on organization on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of organization in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on organization in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__search_term_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.5824041, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__search_term_report`\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join organization \n on campaign.organization_id = organization.organization_id\n where report.search_term_text is not null\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`"}, "model.apple_search_ads.apple_search_ads__campaign_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__campaign_report"], "unique_id": "model.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.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 join organization \n on campaign.organization_id = organization.organization_id\n {{ dbt_utils.group_by(9) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__campaign_report.sql", "original_file_path": "models/apple_search_ads__campaign_report.sql", "name": "apple_search_ads__campaign_report", "alias": "apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "d555ffbfe1f914afd50ba592ab961f1ebdb40a4d4315c0696f1c80738930080f"}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each campaign.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the campaign associted with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The start timestamp of this campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The end timestamp of this campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on campaign on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of campaign in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on campaign in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.5561442, "compiled_code": "\n\nwith report as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\n\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n\n), \n\njoined as (\n\n select \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 join organization \n on campaign.organization_id = organization.organization_id\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`"}, "model.apple_search_ads.apple_search_ads__organization_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads", "fqn": ["apple_search_ads", "apple_search_ads__organization_report"], "unique_id": "model.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.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 join organization \n on campaign.organization_id = organization.organization_id\n {{ dbt_utils.group_by(4) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "apple_search_ads__organization_report.sql", "original_file_path": "models/apple_search_ads__organization_report.sql", "name": "apple_search_ads__organization_report", "alias": "apple_search_ads__organization_report", "checksum": {"name": "sha256", "checksum": "47084fe8809edaeeda722e20590b19c6488687d05ad654b8fef4a0021088e0a2"}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "Each record represents the daily ad performance of each organization.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on organization on given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of organization in a given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on organization in the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__organization_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1667945774.572949, "compiled_code": "\n\nwith report as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \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 join organization \n on campaign.organization_id = organization.organization_id\n group by 1,2,3,4\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`"}, "model.ad_reporting.ad_reporting__campaign_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__campaign_report"], "unique_id": "model.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 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 from base\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__campaign_report.sql", "original_file_path": "models/ad_reporting__campaign_report.sql", "name": "ad_reporting__campaign_report", "alias": "ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "2483fb7d8542d9dea58ad86c4e2821501bf104c2f6802e7c4f74baea277ce39c"}, "tags": [], "refs": [["int_ad_reporting__campaign_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1667945774.816291, "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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\nunioned as (\n\n \n\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\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 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 from base\n group by 1,2,3,4,5,6\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__campaign_report`"}, "model.ad_reporting.ad_reporting__account_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__account_report"], "unique_id": "model.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 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 from base\n {{ dbt_utils.group_by(4) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__account_report.sql", "original_file_path": "models/ad_reporting__account_report.sql", "name": "ad_reporting__account_report", "alias": "ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "7a5c7e7a4d03a8a074b5e23154de600f7dfa06931055665906e407e2eaad8a8a"}, "tags": [], "refs": [["int_ad_reporting__account_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1667945774.795636, "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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\nunioned as (\n\n \n\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\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 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 from base\n group by 1,2,3,4\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__account_report`"}, "model.ad_reporting.ad_reporting__ad_group_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__ad_group_report"], "unique_id": "model.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 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 from base\n {{ dbt_utils.group_by(8) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__ad_group_report.sql", "original_file_path": "models/ad_reporting__ad_group_report.sql", "name": "ad_reporting__ad_group_report", "alias": "ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "fe93b1aa6e8cc66827b9b6ed209113e7af61fa090c025adc18a657278c4fc15b"}, "tags": [], "refs": [["int_ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1667945774.802407, "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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(ad_squad_id as \n string\n) as ad_group_id \n ,cast(ad_squad_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\nunioned as (\n\n \n\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\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 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 from base\n group by 1,2,3,4,5,6,7,8\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(ad_squad_id as \n string\n) as ad_group_id \n ,cast(ad_squad_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_group_report`"}, "model.ad_reporting.ad_reporting__search_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__search_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__search_report"], "unique_id": "model.ad_reporting.ad_reporting__search_report", "raw_code": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['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 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 from base\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__search_report.sql", "original_file_path": "models/ad_reporting__search_report.sql", "name": "ad_reporting__search_report", "alias": "ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "fdfe5302e880da1524033232e68b18721fd0115f3ba0861fab1dd8a94fb67578"}, "tags": [], "refs": [["int_ad_reporting__search_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by search query, ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID representing the keyword, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The keyword text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The search query text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_match_type": {"name": "search_match_type", "description": "The search match type associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__search_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1667945774.833472, "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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_query as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_term_text as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\nunioned as (\n\n \n\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 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 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__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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_query as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_term_text as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__search_report`"}, "model.ad_reporting.ad_reporting__ad_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__ad_report"], "unique_id": "model.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 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 from base\n {{ dbt_utils.group_by(10) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__ad_report.sql", "original_file_path": "models/ad_reporting__ad_report.sql", "name": "ad_reporting__ad_report", "alias": "ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "87a1850a3d333ed329ac0fe5fe08fe66b351da3b7eac0ed33af0b0737af6b057"}, "tags": [], "refs": [["int_ad_reporting__ad_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by ad, ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID representing the ad, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1667945774.8101308, "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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(creative_id as \n string\n) as ad_id \n ,cast(null as \n string\n) as ad_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(pin_promotion_id as \n string\n) as ad_id \n ,cast(pin_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(promoted_tweet_id as \n string\n) as ad_id \n ,cast(tweet_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\nunioned as (\n\n \n\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\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 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 from base\n group by 1,2,3,4,5,6,7,8,9,10\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(creative_id as \n string\n) as ad_id \n ,cast(null as \n string\n) as ad_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(pin_promotion_id as \n string\n) as ad_id \n ,cast(pin_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(promoted_tweet_id as \n string\n) as ad_id \n ,cast(tweet_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_report`"}, "model.ad_reporting.ad_reporting__url_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__url_report"], "unique_id": "model.ad_reporting.ad_reporting__url_report", "raw_code": "{% set enabled_packages = get_enabled_packages(exclude=['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 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 from base\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__url_report.sql", "original_file_path": "models/ad_reporting__url_report.sql", "name": "ad_reporting__url_report", "alias": "ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "50fe407d20dd2329daea89cbb3ad31198e2f5bcda05add9ceeb8cfd5797cb9fa"}, "tags": [], "refs": [["int_ad_reporting__url_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by URL (and if applicable, URL UTM parameters), ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base url of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1667945774.844979, "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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_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\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 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 from base\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_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\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__url_report`"}, "model.ad_reporting.ad_reporting__keyword_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_ad_reporting", "fqn": ["ad_reporting", "ad_reporting__keyword_report"], "unique_id": "model.ad_reporting.ad_reporting__keyword_report", "raw_code": "{% if var('twitter_ads__using_keywords', True) %}\n {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %}\n{% else %}\n {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_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__keyword_report') }}\n),\n\naggregated as (\n \n select \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 from base\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting__keyword_report.sql", "original_file_path": "models/ad_reporting__keyword_report.sql", "name": "ad_reporting__keyword_report", "alias": "ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "ec26e60c982845d99a4f090eeacb8e84626263feecadf10b0189fb6ffdb41ec6"}, "tags": [], "refs": [["int_ad_reporting__keyword_report"]], "sources": [], "metrics": [], "description": "Each record represents daily metrics by keyword, ad group, campaign and account.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID representing the keyword, if present in the source data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The keyword text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The keyword match type associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1667945774.82471, "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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(criterion_id as \n string\n) as keyword_id \n ,cast(keyword_match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_value as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\nunioned as (\n\n \n\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 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 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__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 \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(criterion_id as \n string\n) as keyword_id \n ,cast(keyword_match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_value as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\nunioned as (\n\n \n\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)"}], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__keyword_report`"}, "model.ad_reporting.int_ad_reporting__campaign_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__campaign_report"], "unique_id": "model.ad_reporting.int_ad_reporting__campaign_report", "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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__campaign_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__campaign_report.sql", "name": "int_ad_reporting__campaign_report", "alias": "int_ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "5174e150c1ad98a9b9d99fb9352e0724ace849dd094a9b9746a3b0e7490d1b60"}, "tags": [], "refs": [["twitter_ads__campaign_report"], ["facebook_ads__campaign_report"], ["google_ads__campaign_report"], ["microsoft_ads__campaign_report"], ["apple_search_ads__campaign_report"], ["linkedin_ads__campaign_group_report"], ["pinterest_ads__campaign_report"], ["snapchat_ads__campaign_report"], ["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1667945769.6410801, "compiled_code": "\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__keyword_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__keyword_report"], "unique_id": "model.ad_reporting.int_ad_reporting__keyword_report", "raw_code": "{% if var('twitter_ads__using_keywords', True) %}\n {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %}\n{% else %}\n {% set include_list = ['apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_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 '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 %}\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': 'null',\n 'keyword_text': 'keyword',\n 'keyword_match_type': 'null'\n },\n relation=ref('twitter_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__keyword_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__keyword_report.sql", "name": "int_ad_reporting__keyword_report", "alias": "int_ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "c50ef0b6f7821ff87fd0e3e77f3d5bebb6936d152d69693b739017656e01b139"}, "tags": [], "refs": [["apple_search_ads__keyword_report"], ["google_ads__keyword_report"], ["microsoft_ads__keyword_report"], ["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1667945769.7165408, "compiled_code": "\n \n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(criterion_id as \n string\n) as keyword_id \n ,cast(keyword_match_type as \n string\n) as keyword_match_type \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(match_type as \n string\n) as keyword_match_type \n ,cast(keyword_value as \n string\n) as keyword_text \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\nunioned as (\n\n \n\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": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__ad_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_report"], "unique_id": "model.ad_reporting.int_ad_reporting__ad_report", "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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__ad_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_report.sql", "name": "int_ad_reporting__ad_report", "alias": "int_ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "45df3eabc4c6c81f5a7761e477bb4f1713880612a62a8422ceabae062e18a1ab"}, "tags": [], "refs": [["google_ads__ad_report"], ["microsoft_ads__ad_report"], ["apple_search_ads__ad_report"], ["facebook_ads__ad_report"], ["linkedin_ads__creative_report"], ["pinterest_ads__pin_promotion_report"], ["snapchat_ads__ad_report"], ["tiktok_ads__ad_report"], ["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1667945769.7564108, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(creative_id as \n string\n) as ad_id \n ,cast(null as \n string\n) as ad_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(pin_promotion_id as \n string\n) as ad_id \n ,cast(pin_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(ad_id as \n string\n) as ad_id \n ,cast(ad_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(promoted_tweet_id as \n string\n) as ad_id \n ,cast(tweet_name as \n string\n) as ad_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__account_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__account_report"], "unique_id": "model.ad_reporting.int_ad_reporting__account_report", "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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__account_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__account_report.sql", "name": "int_ad_reporting__account_report", "alias": "int_ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "9a2f22570731cdbb33c0d3a211849591bfe267f01032c75ca4abea376ba08025"}, "tags": [], "refs": [["twitter_ads__account_report"], ["facebook_ads__account_report"], ["google_ads__account_report"], ["microsoft_ads__account_report"], ["apple_search_ads__organization_report"], ["linkedin_ads__account_report"], ["pinterest_ads__advertiser_report"], ["snapchat_ads__account_report"], ["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1667945769.819276, "compiled_code": "\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\n\n),\n\n\n\nfacebook_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__url_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__url_report"], "unique_id": "model.ad_reporting.int_ad_reporting__url_report", "raw_code": "{% set enabled_packages = get_enabled_packages(exclude=['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 '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__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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__url_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__url_report.sql", "name": "int_ad_reporting__url_report", "alias": "int_ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "2442541b23cb235b629a95c509a11719e2f77b825b97999f0b5d5d64245a0359"}, "tags": [], "refs": [["google_ads__url_report"], ["microsoft_ads__url_report"], ["facebook_ads__url_report"], ["linkedin_ads__url_report"], ["pinterest_ads__url_report"], ["snapchat_ads__url_report"], ["tiktok_ads__url_report"], ["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1667945769.860626, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(null as \n string\n) as ad_group_id \n ,cast(null as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(null as \n string\n) as campaign_id \n ,cast(null as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(base_url as \n string\n) as base_url \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n ,cast(url_host as \n string\n) as url_host \n ,cast(url_path as \n string\n) as url_path \n ,cast(utm_campaign as \n string\n) as utm_campaign \n ,cast(utm_content as \n string\n) as utm_content \n ,cast(utm_medium as \n string\n) as utm_medium \n ,cast(utm_source as \n string\n) as utm_source \n ,cast(utm_term as \n string\n) as utm_term \n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__search_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__search_report"], "unique_id": "model.ad_reporting.int_ad_reporting__search_report", "raw_code": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__search_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__search_report.sql", "name": "int_ad_reporting__search_report", "alias": "int_ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "5b93e83924851080b1345f16d10b896fad98172559d9fb1056cd00f53e1e7833"}, "tags": [], "refs": [["microsoft_ads__search_report"], ["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__search_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1667945769.9294348, "compiled_code": "\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_name as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_query as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(keyword_id as \n string\n) as keyword_id \n ,cast(keyword_text as \n string\n) as keyword_text \n ,cast(match_type as \n string\n) as search_match_type \n ,cast(search_term_text as \n string\n) as search_query \n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\nunioned as (\n\n \n\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": [], "relation_name": null}, "model.ad_reporting.int_ad_reporting__ad_group_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_int_ad_reporting", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_group_report"], "unique_id": "model.ad_reporting.int_ad_reporting__ad_group_report", "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\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "intermediate/int_ad_reporting__ad_group_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_group_report.sql", "name": "int_ad_reporting__ad_group_report", "alias": "int_ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "0126c482a556de63a9ca7bbf8a3760801fb81dc1e7cdc6eddad67206a52be585"}, "tags": [], "refs": [["google_ads__ad_group_report"], ["microsoft_ads__ad_group_report"], ["apple_search_ads__ad_group_report"], ["linkedin_ads__campaign_report"], ["facebook_ads__ad_set_report"], ["pinterest_ads__ad_group_report"], ["snapchat_ads__ad_squad_report"], ["tiktok_ads__ad_group_report"], ["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1667945769.9547698, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as \n string\n) as platform,\n\n cast(organization_id as \n string\n) as account_id \n ,cast(organization_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(taps as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(campaign_id as \n string\n) as ad_group_id \n ,cast(campaign_name as \n string\n) as ad_group_name \n ,cast(campaign_group_id as \n string\n) as campaign_id \n ,cast(campaign_group_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(cost as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(ad_set_id as \n string\n) as ad_group_id \n ,cast(ad_set_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as \n string\n) as platform,\n\n cast(ad_account_id as \n string\n) as account_id \n ,cast(ad_account_name as \n string\n) as account_name \n ,cast(ad_squad_id as \n string\n) as ad_group_id \n ,cast(ad_squad_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(swipes as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as \n string\n) as platform,\n\n cast(advertiser_id as \n string\n) as account_id \n ,cast(advertiser_name as \n string\n) as account_name \n ,cast(ad_group_id as \n string\n) as ad_group_id \n ,cast(ad_group_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as \n string\n) as platform,\n\n cast(account_id as \n string\n) as account_id \n ,cast(account_name as \n string\n) as account_name \n ,cast(line_item_id as \n string\n) as ad_group_id \n ,cast(line_item_name as \n string\n) as ad_group_name \n ,cast(campaign_id as \n string\n) as campaign_id \n ,cast(campaign_name as \n string\n) as campaign_name \n ,cast(clicks as \n int64\n) as clicks\n\n ,cast(impressions as \n int64\n) as impressions\n\n ,cast(spend as \n float64\n) as spend\n\n \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\nunioned as (\n\n \n\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\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select\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 id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__campaign_history.sql", "original_file_path": "models/stg_apple_search_ads__campaign_history.sql", "name": "stg_apple_search_ads__campaign_history", "alias": "stg_apple_search_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "294e54bc10f47e44786be1c445e764b49464643d75c0bf7a4fc3a38f3868e0de"}, "tags": [], "refs": [["stg_apple_search_ads__campaign_history_tmp"], ["stg_apple_search_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a campaign in Apple Search Ads.", "columns": {"modified_at": {"name": "modified_at", "description": "Timestamp of when the campaign object was last modified.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the campaign, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.051852, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 from base\n),\n\nfinal as (\n \n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp", "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__ad_report.sql", "original_file_path": "models/stg_apple_search_ads__ad_report.sql", "name": "stg_apple_search_ads__ad_report", "alias": "stg_apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "45019dc2d949eecadbbd9d4a052049a60dca00c32f726da678972fa8bdadd1f6"}, "tags": [], "refs": [["stg_apple_search_ads__ad_report_tmp"], ["stg_apple_search_ads__ad_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of an ad in Apple Search Ads.", "columns": {"date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.046844, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp", "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__campaign_report.sql", "original_file_path": "models/stg_apple_search_ads__campaign_report.sql", "name": "stg_apple_search_ads__campaign_report", "alias": "stg_apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "c4681d203c58d68501b9d2d3a84fc28598e9705eb4cc7f4496be52e3209768d3"}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report_tmp"], ["stg_apple_search_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a campaign in Apple Search Ads.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.0570729, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_organization_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization_tmp", "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__organization"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__organization.sql", "original_file_path": "models/stg_apple_search_ads__organization.sql", "name": "stg_apple_search_ads__organization", "alias": "stg_apple_search_ads__organization", "checksum": {"name": "sha256", "checksum": "24d3ee4e2d050e8ade0b3222ea535ed1837d2ea4265f00cf3f3b7b67a7a30dab"}, "tags": [], "refs": [["stg_apple_search_ads__organization_tmp"], ["stg_apple_search_ads__organization_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Specified currency for respective organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_model": {"name": "payment_model", "description": "Values include 'LOC', 'PAYG' or (payment method hasn't been set).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "Organization default timezone; values can be ORTZ or UTC.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__organization.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.071712, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp", "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__keyword_report.sql", "original_file_path": "models/stg_apple_search_ads__keyword_report.sql", "name": "stg_apple_search_ads__keyword_report", "alias": "stg_apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "087cf73b201edc946f1b30c28096f4d513aca817fc3e510cac05f28dc781c665"}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report_tmp"], ["stg_apple_search_ads__keyword_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a keyword in Apple Search Ads.", "columns": {"keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.068286, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp", "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__keyword_history.sql", "original_file_path": "models/stg_apple_search_ads__keyword_history.sql", "name": "stg_apple_search_ads__keyword_history", "alias": "stg_apple_search_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "5ee576e97a5fffaf97916376ca747fcb9389b6733d268f9b42308a8f244ade8e"}, "tags": [], "refs": [["stg_apple_search_ads__keyword_history_tmp"], ["stg_apple_search_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a keyword in Apple Search Ads.", "columns": {"modified_at": {"name": "modified_at", "description": "Timestamp of when the keyword object was last modified.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the keyword, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.063087, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"compiled": true, "resource_type": "model", "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.fill_pass_through_columns"], "nodes": ["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_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__search_term_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__search_term_report", "alias": "stg_apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "6345a092b669f3283eb8b09b8590cdcf4e89da7ac486c18bb626315fac6db0e0"}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report_tmp"], ["stg_apple_search_ads__search_term_report_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_format": {"name": "ad_format", "description": "Format of creative set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "The word or phrase to match of user searches.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__search_term_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.0831912, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__search_term_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["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_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n select \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 id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_group_history", "alias": "stg_apple_search_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "b2081179706957545ca7818fd65e298a3948051372426039e2ecffd091fef371"}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_history_tmp"], ["stg_apple_search_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an ad group in Apple Search Ads.", "columns": {"modified_at": {"name": "modified_at", "description": "Timestamp of when the ad group object was last modified.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The designated ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The designated ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.02975, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_history`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp", "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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 id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "stg_apple_search_ads__ad_history.sql", "original_file_path": "models/stg_apple_search_ads__ad_history.sql", "name": "stg_apple_search_ads__ad_history", "alias": "stg_apple_search_ads__ad_history", "checksum": {"name": "sha256", "checksum": "4abb76f80d87af32ba976747bb0accf3b1641854a41a3e9d8ebec94533405d23"}, "tags": [], "refs": [["stg_apple_search_ads__ad_history_tmp"], ["stg_apple_search_ads__ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an ad in Apple Search Ads.", "columns": {"created_at": {"name": "created_at", "description": "Timestamp of when ad was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the ad object was last modified.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The current status of the ad, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.0400481, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["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_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select\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", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_group_report", "alias": "stg_apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "a6f8f1e79e88e2512acd90e2768436ef73939e82acd46b79c0775ba19865147d"}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report_tmp"], ["stg_apple_search_ads__ad_group_report_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.0347462, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report`"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["source.apple_search_ads_source.apple_search_ads.search_term_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__search_term_report_tmp"], "unique_id": "model.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\nselect * \nfrom {{ var('search_term_report') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__search_term_report_tmp", "alias": "stg_apple_search_ads__search_term_report_tmp", "checksum": {"name": "sha256", "checksum": "86f6e99ff5c0373cf5ec106d4011966278601cb5350d588466564e2dca2fa951"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "search_term_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__search_term_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.320936, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_search_term_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__search_term_report_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_history_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__campaign_history_tmp", "alias": "stg_apple_search_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "e23c062d3d75b890a717ab4047e5a0dccf7c098b3927935df02f76c17acb3ea7"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.332848, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_history_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_history') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__keyword_history_tmp", "alias": "stg_apple_search_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "852fa9ece91c72dd36f654ce0d71f2af4a1707385c0fa00e3d68e206e4ac456b"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "keyword_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.343345, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_history_tmp"], "unique_id": "model.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\nselect * \nfrom {{ var('ad_group_history') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_group_history_tmp", "alias": "stg_apple_search_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "69317b26b7a3c109c0e5e61d7fdad053cb0549479a0dfdacd0d67ff0757cc97e"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.353813, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_history_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_report_tmp"], "unique_id": "model.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\nselect * \nfrom {{ var('ad_group_report') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_group_report_tmp", "alias": "stg_apple_search_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "91089253c95dee7d0aea3f9b8cc49cf343c2d06acf0de36641ebaef03e1d2b1b"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "ad_group_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.365698, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_history_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_history') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_history_tmp", "alias": "stg_apple_search_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "7b184af2299b7d42defa4606467cf9bf379e10cec768bf1e5825c040dbdfacb8"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.376141, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_report_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_report') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__campaign_report_tmp", "alias": "stg_apple_search_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "ae8d95be0097305356d0ba251d324d35bbe367edcf342c958f69fea9f89625f2"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "campaign_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.3865862, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.organization"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__organization_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('organization') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__organization_tmp", "alias": "stg_apple_search_ads__organization_tmp", "checksum": {"name": "sha256", "checksum": "4a62af784e819ec6034aa89fe16019f027c9994b192426e70bcf18bda3d117a9"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "organization"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__organization_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.397269, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_organization_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_report_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_report') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__keyword_report_tmp", "alias": "stg_apple_search_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "5009b770850f4f2648d5498a78b1491e6a44250d9ac2d7c08c249e8624f517f2"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "keyword_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.409122, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report_tmp`"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_level_report"]}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_apple_search_ads_source", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_report_tmp"], "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_report') }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_apple_search_ads__ad_report_tmp", "alias": "stg_apple_search_ads__ad_report_tmp", "checksum": {"name": "sha256", "checksum": "1744a47e20045a53726079456f5aba358e0292dd8a14d670e6ab7b2c30ece7ee"}, "tags": [], "refs": [], "sources": [["apple_search_ads", "ad_level_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.41956, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_history"], "unique_id": "model.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 from base\n), \n\nfinal as (\n\n select\n id as pin_promotion_id,\n ad_group_id,\n created_time as created_at,\n destination_url,\n {{ dbt_utils.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 {{ dbt_utils.get_url_parameter('destination_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('destination_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('destination_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('destination_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_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 id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__pin_promotion_history.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_history.sql", "name": "stg_pinterest_ads__pin_promotion_history", "alias": "stg_pinterest_ads__pin_promotion_history", "checksum": {"name": "sha256", "checksum": "7d9ae411577ef8e7067d067cce4f8a2eed6b8658b16ffda0e79a118aea734331"}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_history_tmp"], ["stg_pinterest_ads__pin_promotion_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a Pinterest Pin promotion.", "columns": {"pin_promotion_id": {"name": "pin_promotion_id", "description": "Pin promotion ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Pin promotion ad group ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Pin creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_id": {"name": "pin_id", "description": "Original pin ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.259806, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 cast(null as \n string\n) as \n \n android_deep_link\n \n , \n cast(null as \n string\n) 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 \n string\n) 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 \n string\n) as \n \n review_status\n \n , \n \n \n status\n \n as \n \n status\n \n, \n cast(null as \n timestamp\n) as \n \n updated_time\n \n , \n cast(null as \n string\n) as \n \n view_tracking_url\n \n \n\n\n from base\n), \n\nfinal as (\n\n select\n id as pin_promotion_id,\n ad_group_id,\n created_time as created_at,\n destination_url,\n \n\n \n split(\n destination_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n name as pin_name,\n pin_id,\n status as pin_status,\n creative_type,\n _fivetran_synced,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_history`"}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report_tmp", "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_report"], "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_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__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 from base\n),\n\nfinal as (\n \n select\n {{ dbt_utils.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", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__keyword_report.sql", "original_file_path": "models/stg_pinterest_ads__keyword_report.sql", "name": "stg_pinterest_ads__keyword_report", "alias": "stg_pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "4a1f384242b060c6acc597f4fc397a7a56d40aec534ab7d45ad09dd221d6e71e"}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report_tmp"], ["stg_pinterest_ads__keyword_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of Keywords by ad group, campaign, and advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.300213, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 cast(null as \n int64\n) as \n \n impression_2\n \n , \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n pin_promotion_id\n \n as \n \n pin_promotion_id\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp", "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__ad_group_report.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_report.sql", "name": "stg_pinterest_ads__ad_group_report", "alias": "stg_pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "d7093951e6c8ef67b5f1fc47361d8c728d375f2e9c5c1cd339b4ae46b43bf6d0"}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report_tmp"], ["stg_pinterest_ads__ad_group_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Pinterest Ad Groups by campaign and advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.27071, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 cast(null as \n int64\n) as \n \n impression_2\n \n , \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`"}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history_tmp", "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_history"], "unique_id": "model.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 from base\n), \n\nfinal as (\n\n select \n id as campaign_id,\n name as campaign_name,\n advertiser_id,\n status as campaign_status,\n _fivetran_synced,\n created_time as created_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__campaign_history.sql", "original_file_path": "models/stg_pinterest_ads__campaign_history.sql", "name": "stg_pinterest_ads__campaign_history", "alias": "stg_pinterest_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "945f535a560d134e94225647469d1cfbe295ed547b84be7af6575b9d86d4baa0"}, "tags": [], "refs": [["stg_pinterest_ads__campaign_history_tmp"], ["stg_pinterest_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a Pinterest Campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Campaign creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the Campaign. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.249661, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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 from base\n), \n\nfinal as (\n\n select \n id as campaign_id,\n name as campaign_name,\n advertiser_id,\n status as campaign_status,\n _fivetran_synced,\n created_time as created_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp", "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__advertiser_report.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_report.sql", "name": "stg_pinterest_ads__advertiser_report", "alias": "stg_pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "e7c15e76e697bfc8fbe7fac4b2e8dd38634385e0784ac8cf7e6c68e1a6152628"}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report_tmp"], ["stg_pinterest_ads__advertiser_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of an Advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.2813282, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 cast(null as \n int64\n) as \n \n impression_2\n \n , \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp", "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n id as advertiser_id,\n name as advertiser_name,\n status as advertiser_status,\n billing_profile_status,\n billing_type,\n country,\n created_time as created_at,\n currency as currency_code,\n merchant_id,\n owner_user_id,\n updated_time as updated_at,\n row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__advertiser_history.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_history.sql", "name": "stg_pinterest_ads__advertiser_history", "alias": "stg_pinterest_ads__advertiser_history", "checksum": {"name": "sha256", "checksum": "c373922dcac412d7b7290ec100cdf341ca19176968c29f240be32e7acd0ca7d9"}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_history_tmp"], ["stg_pinterest_ads__advertiser_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of an advertiser.", "columns": {"advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_status": {"name": "advertiser_status", "description": "Status of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_profile_status": {"name": "billing_profile_status", "description": "Status of the billing profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_type": {"name": "billing_type", "description": "The billing type of the advertiser. Will typically be CREDIT_CARD or INVOICE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code which the advertiser is set up using.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "merchant_id": {"name": "merchant_id", "description": "Unique ID of the merchant associated with the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_user_id": {"name": "owner_user_id", "description": "Unique identifier of the owner user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when a record was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.277663, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 billing_profile_status\n \n as \n \n billing_profile_status\n \n, \n \n \n billing_type\n \n as \n \n billing_type\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 merchant_id\n \n as \n \n merchant_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n owner_user_id\n \n as \n \n owner_user_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_time\n \n as \n \n updated_time\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as advertiser_id,\n name as advertiser_name,\n status as advertiser_status,\n billing_profile_status,\n billing_type,\n country,\n created_time as created_at,\n currency as currency_code,\n merchant_id,\n owner_user_id,\n updated_time as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`"}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report_tmp", "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__campaign_report.sql", "original_file_path": "models/stg_pinterest_ads__campaign_report.sql", "name": "stg_pinterest_ads__campaign_report", "alias": "stg_pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "a3ec188707551886ae5a3b54ffb3b58b283020e6fe576c1a5c144b7980d07eca"}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report_tmp"], ["stg_pinterest_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of Campaigns by advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.28634, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n int64\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 cast(null as \n int64\n) as \n \n impression_2\n \n , \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`"}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history_tmp", "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_history"], "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_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__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 from base\n),\n\nfinal as (\n \n select\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 id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__keyword_history.sql", "original_file_path": "models/stg_pinterest_ads__keyword_history.sql", "name": "stg_pinterest_ads__keyword_history", "alias": "stg_pinterest_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "8b3313f6551f5e5a8929436411869bcd40e86fdcf8093d1158ac4ccbb75a063d"}, "tags": [], "refs": [["stg_pinterest_ads__keyword_history_tmp"], ["stg_pinterest_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Keyword.", "columns": {"keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_value": {"name": "keyword_value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique identifier of the record within the Fivetran synced table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "archived": {"name": "archived", "description": "Boolean indicating if the keyword is archived.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid amount set for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.293487, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history`"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp", "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_report"], "unique_id": "model.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 from base\n), \n\nfinal as (\n\n select \n {{ dbt_utils.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", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_report.sql", "name": "stg_pinterest_ads__pin_promotion_report", "alias": "stg_pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "a96d37101d4258bf1929d513e062491f3b00b645e9a765f8255371e2b5c9f39a"}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report_tmp"], ["stg_pinterest_ads__pin_promotion_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the daily performance of a Pinterest Pin promotion by ad group, campaign, and advertiser.", "columns": {"date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.264992, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp", "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_history"], "unique_id": "model.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 from base\n), \n\nfinal as (\n\n select \n id as ad_group_id,\n name as ad_group_name,\n status as ad_group_status,\n _fivetran_synced,\n campaign_id,\n created_time as created_at,\n end_time,\n start_time,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "stg_pinterest_ads__ad_group_history.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_history.sql", "name": "stg_pinterest_ads__ad_group_history", "alias": "stg_pinterest_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "3fc611eb025a550beebacb144b8fd5b95070cc7d212cdc73029b5e2132272902"}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_history_tmp"], ["stg_pinterest_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of a Pinterest Ad Group.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Parent Campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Ad group creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.245207, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 name\n \n as \n \n name\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 from base\n), \n\nfinal as (\n\n select \n id as ad_group_id,\n name as ad_group_name,\n status as ad_group_status,\n _fivetran_synced,\n campaign_id,\n created_time as created_at,\n end_time,\n start_time,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('advertiser_history') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "name": "stg_pinterest_ads__advertiser_history_tmp", "alias": "stg_pinterest_ads__advertiser_history_tmp", "checksum": {"name": "sha256", "checksum": "30228e737c74f3502de539edf195e6ac0f1bc20d81b4625f2a7d38b7b444e025"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "advertiser_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.697658, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history_tmp`"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('pin_promotion_report') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "alias": "stg_pinterest_ads__pin_promotion_report_tmp", "checksum": {"name": "sha256", "checksum": "055e6b22a0ebf3ae5ebc592a2d59fde23e9c4aa97307e7bc9d07fdd564d29318"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "pin_promotion_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.708259, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_report') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "name": "stg_pinterest_ads__campaign_report_tmp", "alias": "stg_pinterest_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "297b62832ce1e1cf4ec432c98f64696ae82b6d5461ba9a6991f9143d8680600e"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "campaign_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.7201018, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('advertiser_report') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "name": "stg_pinterest_ads__advertiser_report_tmp", "alias": "stg_pinterest_ads__advertiser_report_tmp", "checksum": {"name": "sha256", "checksum": "51f6279568da2b328c230e1141b82a8d4cf23f0db1d71797da244ba0f850f80c"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "advertiser_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.731393, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_report') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "name": "stg_pinterest_ads__keyword_report_tmp", "alias": "stg_pinterest_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "8d5de2659df4d8c7f106988e098aad658de1e0df637686bc39641dbfd58528ab"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "keyword_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.742903, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_report_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_report') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_pinterest_ads__ad_group_report_tmp", "alias": "stg_pinterest_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "416b2ba76c7422ae9d0cc9027cfda76b1461ead0158a8cc3d7bcec5765fa7fa4"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "ad_group_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.754215, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report_tmp`"}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_history') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "name": "stg_pinterest_ads__keyword_history_tmp", "alias": "stg_pinterest_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "7fbf43157af6c11490590879cc6abd74a981291eaa179873d44ee6517d058272"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "keyword_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.766539, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history_tmp`"}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "name": "stg_pinterest_ads__campaign_history_tmp", "alias": "stg_pinterest_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "6b6e9567363f5912e8f6c2f8547e79e160a7e998dbfb2ac6fe193c73949b9163"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.777361, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history_tmp`"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('ad_group_history') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_pinterest_ads__ad_group_history_tmp", "alias": "stg_pinterest_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "781c3dac60c7fc9e9f08f8ad4fce2e5fec42b09036486e24814e717cec4b4ce3"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.78778, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history_tmp`"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_history"]}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_pinterest_source", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_history_tmp"], "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('pin_promotion_history') }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "alias": "stg_pinterest_ads__pin_promotion_history_tmp", "checksum": {"name": "sha256", "checksum": "268ac897534336c397f3c313861c98d0a47f3022d3fc2aefcc201fb3d1db81b9"}, "tags": [], "refs": [], "sources": [["pinterest_ads", "pin_promotion_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1667945770.799476, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_history_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp", "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_report_hourly"], "unique_id": "model.tiktok_ads_source.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 from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(stat_time_hour as {{ dbt_utils.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", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__campaign_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__campaign_report_hourly.sql", "name": "stg_tiktok_ads__campaign_report_hourly", "alias": "stg_tiktok_ads__campaign_report_hourly", "checksum": {"name": "sha256", "checksum": "2c2bc92ccb26a7f8380b5b2e5215b7c52e10b3ca4937629549065874793b2293"}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly_tmp"], ["stg_tiktok_ads__campaign_report_hourly_tmp"]], "sources": [], "metrics": [], "description": "Each record represent data for each campaign for each hour.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_report_hourly.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945775.7466738, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(stat_time_hour as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_report_hourly"], "unique_id": "model.tiktok_ads_source.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 from base\n), \n\nfinal as (\n\n select \n adgroup_id as ad_group_id,\n cast(stat_time_hour as {{ dbt_utils.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", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_report_hourly.sql", "name": "stg_tiktok_ads__ad_group_report_hourly", "alias": "stg_tiktok_ads__ad_group_report_hourly", "checksum": {"name": "sha256", "checksum": "5d0c1cb8954787126a2141c59e4c8b849fe3c13112073fef2b08c553df4d5ad5"}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly_tmp"], ["stg_tiktok_ads__ad_group_report_hourly_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each ad group for each hour.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "Ad group id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_report_hourly.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945775.731064, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n adgroup_id as ad_group_id,\n cast(stat_time_hour as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_history"], "unique_id": "model.tiktok_ads_source.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 from base\n), \n\nfinal as (\n\n select\n adgroup_id as ad_group_id,\n cast(updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n age,\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 adgroup_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_history.sql", "name": "stg_tiktok_ads__ad_group_history", "alias": "stg_tiktok_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "6f17a6500d8cf7d6eecca042fe00b62ad408285f7716b933ffb34bdf41daf60b"}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_history_tmp"], ["stg_tiktok_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each ad group.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The Ad group's campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_days": {"name": "action_days", "description": "Action days", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Display name of ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945775.685761, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n \n age\n \n as \n \n age\n \n, \n \n \n languages\n \n as \n \n languages\n \n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n adgroup_id as ad_group_id,\n cast(updated_at as \n timestamp\n) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n age,\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp", "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_report_hourly"], "unique_id": "model.tiktok_ads_source.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 from base\n), \n\nfinal as (\n\n select \n ad_id, \n cast(stat_time_hour as {{ dbt_utils.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", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__ad_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_report_hourly.sql", "name": "stg_tiktok_ads__ad_report_hourly", "alias": "stg_tiktok_ads__ad_report_hourly", "checksum": {"name": "sha256", "checksum": "1f2059be82b502ed2cecb9c75baba870edffc38b0da6eb933fbf28dffaf10a7a"}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly_tmp"], ["stg_tiktok_ads__ad_report_hourly_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each ad for each hour.", "columns": {"ad_id": {"name": "ad_id", "description": "Ad id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_report_hourly.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945775.715701, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n ad_id, \n cast(stat_time_hour as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_advertiser_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp", "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__advertiser"], "unique_id": "model.tiktok_ads_source.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 from base\n),\n\nfinal as (\n\n select \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 phone_number, \n telephone, \n timezone\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__advertiser.sql", "original_file_path": "models/stg_tiktok_ads__advertiser.sql", "name": "stg_tiktok_ads__advertiser", "alias": "stg_tiktok_ads__advertiser", "checksum": {"name": "sha256", "checksum": "759a97a786242ecdb350f1852e0861bbeae8218dc19a4047fee98c96ea0ba8be"}, "tags": [], "refs": [["stg_tiktok_ads__advertiser_tmp"], ["stg_tiktok_ads__advertiser_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each advertiser.", "columns": {"advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address": {"name": "address", "description": "Advertiser address information", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Account available balance", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company": {"name": "company", "description": "Advertiser's company name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contacter": {"name": "contacter", "description": "Contact Person", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The advertiser's country", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Advertiser's create time", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Type of currency used by advertisers", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Brand description, i.e. promotional content", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Advertiser contact email, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Advertiser industry category", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "Language used by advertisers", "meta": {}, "data_type": null, "quote": null, "tags": []}, "license_no": {"name": "license_no", "description": "License number", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Contact mobile number, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "telephone": {"name": "telephone", "description": "Fixed phone number, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Ad account time zone including GMT offset", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__advertiser.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945775.675173, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 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 \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n telephone\n \n as \n \n telephone\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select \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 phone_number, \n telephone, \n timezone\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp", "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_history"], "unique_id": "model.tiktok_ads_source.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 from base\n), \n\nfinal as (\n\n select \n ad_id,\n cast(updated_at as {{ dbt_utils.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_utils.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 {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('landing_page_url', 'utm_term') }} as utm_term,\n landing_page_url,\n row_number() over (partition by ad_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__ad_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_history.sql", "name": "stg_tiktok_ads__ad_history", "alias": "stg_tiktok_ads__ad_history", "checksum": {"name": "sha256", "checksum": "5053436d29ee6e8509235feb281623ffe08680916c5aabb03638be0c21f9ec60"}, "tags": [], "refs": [["stg_tiktok_ads__ad_history_tmp"], ["stg_tiktok_ads__ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each ad.", "columns": {"ad_id": {"name": "ad_id", "description": "Ad ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad Name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_to_action": {"name": "call_to_action", "description": "Call to action values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945775.696358, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n), \n\nfinal as (\n\n select \n ad_id,\n cast(updated_at as \n timestamp\n) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n \n\n \n split(\n landing_page_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n landing_page_url,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_history"], "unique_id": "model.tiktok_ads_source.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 from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by campaign_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "stg_tiktok_ads__campaign_history.sql", "original_file_path": "models/stg_tiktok_ads__campaign_history.sql", "name": "stg_tiktok_ads__campaign_history", "alias": "stg_tiktok_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "16c836c95f7cc17d3baf3e4ac360fbde750e492f12a828db8c5850068f96a30e"}, "tags": [], "refs": [["stg_tiktok_ads__campaign_history_tmp"], ["stg_tiktok_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents data for each campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "split_test_variable": {"name": "split_test_variable", "description": "Split Test variables. Optional values; TARGETING, BIDDING_OPTIMIZATION , CREATIVE.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945775.700966, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n \n campaign_name\n \n as \n \n campaign_name\n \n, \n \n \n campaign_type\n \n as \n \n campaign_type\n \n, \n \n \n split_test_variable\n \n 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 from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(updated_at as \n timestamp\n) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_report_hourly_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_report_hourly') }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "alias": "stg_tiktok_ads__ad_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "30949b79355e85af66a3df6de9ef124c666c0bf8ecc911ad673eb56cf3124b7e"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "ad_report_hourly"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945771.134706, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_history_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_history') }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "name": "stg_tiktok_ads__ad_history_tmp", "alias": "stg_tiktok_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "70d0e01a26a5250c141b3a67fd3b1ffcfceea35645e82096257852badea2b9d2"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945771.145391, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_history"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_history_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_group_history') }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_tiktok_ads__ad_group_history_tmp", "alias": "stg_tiktok_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "656a88662bd5fe65b7e782c1d24ecfc5459e7541ec41b4418f4472f3633aa347"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "adgroup_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945771.157223, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_report_hourly_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('campaign_report_hourly') }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "alias": "stg_tiktok_ads__campaign_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "3a734b2b71b67ce84e5c0fadfff18429e2aa52abcae9f16aa3832a7c5e94c25e"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "campaign_report_hourly"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945771.167767, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_report_hourly_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_group_hourly') }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "alias": "stg_tiktok_ads__ad_group_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "5e607a6ea02a4f66c2d50b092e2d37d6b07d0de03b0490dddde773197364937e"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "adgroup_report_hourly"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945771.1785028, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_history_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "tmp/stg_tiktok_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "name": "stg_tiktok_ads__campaign_history_tmp", "alias": "stg_tiktok_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "1c8e0405cc5ddf7b7748f613590108b0b3f786b44a35ac4382079c19072febe5"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945771.189003, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history_tmp`"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.advertiser"]}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_stg_tiktok_ads", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__advertiser_tmp"], "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('advertiser') }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "tmp/stg_tiktok_ads__advertiser_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "name": "stg_tiktok_ads__advertiser_tmp", "alias": "stg_tiktok_ads__advertiser_tmp", "checksum": {"name": "sha256", "checksum": "43da3da14719af2f23e901aa756fc51b3bd807b1172a7776a811541ee26e8688"}, "tags": [], "refs": [], "sources": [["tiktok_ads", "advertiser"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1667945771.2012632, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_advertiser_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp", "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n cast(ad_id as {{ dbt_utils.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_utils.type_bigint() }}) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend,\n reach,\n frequency\n\n {{ fivetran_utils.fill_pass_through_columns('facebook_ads__basic_ad_passthrough_metrics') }}\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__basic_ad.sql", "original_file_path": "models/stg_facebook_ads__basic_ad.sql", "name": "stg_facebook_ads__basic_ad", "alias": "stg_facebook_ads__basic_ad", "checksum": {"name": "sha256", "checksum": "d831e56799b6ad74e33a5d7f977a602494c2f9d5dd5208f8e0c7dbd099b86b45"}, "tags": [], "refs": [["stg_facebook_ads__basic_ad_tmp"], ["stg_facebook_ads__basic_ad_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad the report relates to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "Name of the ad set the report relates to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.8872268, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) as \n \n ad_name\n \n , \n cast(null as \n string\n) 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 \n int64\n) as \n \n reach\n \n , \n cast(null as \n float64\n) as \n \n frequency\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(ad_id as \n int64\n) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as \n int64\n) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend,\n reach,\n frequency\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`"}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__creative_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n cast(id as {{ dbt_utils.type_bigint() }}) as creative_id,\n cast(account_id as {{ dbt_utils.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 row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__creative_history.sql", "original_file_path": "models/stg_facebook_ads__creative_history.sql", "name": "stg_facebook_ads__creative_history", "alias": "stg_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "c6fe833085d58ff2d99e096a37af1567c55e115cd2027bd18fea4bf075a7d207"}, "tags": [], "refs": [["stg_facebook_ads__creative_history_tmp"], ["stg_facebook_ads__creative_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook creative.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique record identifier", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique ID for an ad creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Ad account ID for the account this ad creative belongs to.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "page_link": {"name": "page_link", "description": "Link for the page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "template_page_link": {"name": "template_page_link", "description": "URL destination of Facebook dynamic ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__creative_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.880998, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) 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 \n string\n) as \n \n template_app_link_spec_ipad\n \n , \n cast(null as \n string\n) as \n \n template_app_link_spec_iphone\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n cast(id as \n int64\n) as creative_id,\n cast(account_id as \n int64\n) 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 row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__campaign_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n created_time as created_at,\n cast(account_id as {{ dbt_utils.type_bigint() }}) as account_id,\n cast(id as {{ dbt_utils.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 row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__campaign_history.sql", "original_file_path": "models/stg_facebook_ads__campaign_history.sql", "name": "stg_facebook_ads__campaign_history", "alias": "stg_facebook_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "94da6a989316561af0f55e34db3d2fa3f661b113b2aef18c7bd3199d6efaa819"}, "tags": [], "refs": [["stg_facebook_ads__campaign_history_tmp"], ["stg_facebook_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this campaign belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.8696551, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) as \n \n start_time\n \n , \n cast(null as \n timestamp\n) as \n \n stop_time\n \n , \n cast(null as \n string\n) as \n \n status\n \n , \n cast(null as \n int64\n) as \n \n daily_budget\n \n , \n cast(null as \n int64\n) as \n \n lifetime_budget\n \n , \n cast(null as \n float64\n) as \n \n budget_remaining\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n created_time as created_at,\n cast(account_id as \n int64\n) as account_id,\n cast(id as \n int64\n) 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 row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history`"}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__account_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.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 row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__account_history.sql", "original_file_path": "models/stg_facebook_ads__account_history.sql", "name": "stg_facebook_ads__account_history", "alias": "stg_facebook_ads__account_history", "checksum": {"name": "sha256", "checksum": "ebad79f217e4917524a32c0c825e173162e34d2f8b570ed1c7eaf3fcccf9fd01"}, "tags": [], "refs": [["stg_facebook_ads__account_history_tmp"], ["stg_facebook_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook ad account.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the ad account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.850061, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) as \n \n account_status\n \n , \n cast(null as \n string\n) as \n \n business_country_code\n \n , \n cast(null as \n timestamp\n) as \n \n created_time\n \n , \n cast(null as \n string\n) as \n \n currency\n \n , \n cast(null as \n string\n) as \n \n timezone_name\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) 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 row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history`"}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as {{ dbt_utils.type_bigint() }}) as ad_id,\n name as ad_name,\n cast(account_id as {{ dbt_utils.type_bigint() }}) as account_id,\n cast(ad_set_id as {{ dbt_utils.type_bigint() }}) as ad_set_id, \n cast(campaign_id as {{ dbt_utils.type_bigint() }}) as campaign_id,\n cast(creative_id as {{ dbt_utils.type_bigint() }}) as creative_id,\n row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__ad_history.sql", "original_file_path": "models/stg_facebook_ads__ad_history.sql", "name": "stg_facebook_ads__ad_history", "alias": "stg_facebook_ads__ad_history", "checksum": {"name": "sha256", "checksum": "b09ee1eca3b5810bb34967118f276d923b4e76e3637326e2e586de9cfb99d48a"}, "tags": [], "refs": [["stg_facebook_ads__ad_history_tmp"], ["stg_facebook_ads__ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook ad.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of this ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "ID of the ad set that contains the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.855171, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as \n int64\n) as ad_id,\n name as ad_name,\n cast(account_id as \n int64\n) as account_id,\n cast(ad_set_id as \n int64\n) as ad_set_id, \n cast(campaign_id as \n int64\n) as campaign_id,\n cast(creative_id as \n int64\n) as creative_id,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history`"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_set_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp", "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_set_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as {{ dbt_utils.type_bigint() }}) as ad_set_id,\n name as ad_set_name,\n cast(account_id as {{ dbt_utils.type_bigint() }}) as account_id,\n cast(campaign_id as {{ dbt_utils.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 row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "stg_facebook_ads__ad_set_history.sql", "original_file_path": "models/stg_facebook_ads__ad_set_history.sql", "name": "stg_facebook_ads__ad_set_history", "alias": "stg_facebook_ads__ad_set_history", "checksum": {"name": "sha256", "checksum": "c606fe93d3421bff81293cc88b681087dce54c2e09e7eeffda5e5b8104915fec"}, "tags": [], "refs": [["stg_facebook_ads__ad_set_history_tmp"], ["stg_facebook_ads__ad_set_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table reflects a Facebook ad set.", "columns": {"ad_set_id": {"name": "ad_set_id", "description": "The ID of the ad set.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the ad set.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_set_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945775.862387, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) as \n \n start_time\n \n , \n cast(null as \n timestamp\n) as \n \n end_time\n \n , \n cast(null as \n string\n) as \n \n bid_strategy\n \n , \n cast(null as \n int64\n) as \n \n daily_budget\n \n , \n cast(null as \n int64\n) as \n \n budget_remaining\n \n , \n cast(null as \n string\n) as \n \n status\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as \n int64\n) as ad_set_id,\n name as ad_set_name,\n cast(account_id as \n int64\n) as account_id,\n cast(campaign_id as \n int64\n) 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 row_number() over (partition by id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history`"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.ad_set_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_set_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_set_history') }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_facebook_ads__ad_set_history_tmp", "alias": "stg_facebook_ads__ad_set_history_tmp", "checksum": {"name": "sha256", "checksum": "dad1782db9e8232b2613b5b9959963ad0d0ff99b7462524fc223610cd3e14442"}, "tags": [], "refs": [], "sources": [["facebook_ads", "ad_set_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_set_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.380578, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_set_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('basic_ad') }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "name": "stg_facebook_ads__basic_ad_tmp", "alias": "stg_facebook_ads__basic_ad_tmp", "checksum": {"name": "sha256", "checksum": "46e4ec682f4ed2b33b3123c24ae2b20d9d9bce50ed7ef83b547dd83b57339f89"}, "tags": [], "refs": [], "sources": [["facebook_ads", "basic_ad"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.3925152, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_basic_ad_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_history') }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__ad_history_tmp.sql", "name": "stg_facebook_ads__ad_history_tmp", "alias": "stg_facebook_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "438f57c6bd1ce2a8c4a73600c1e12878efc0a091f42b3a43ed0334067779eace"}, "tags": [], "refs": [], "sources": [["facebook_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.4030871, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__campaign_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "name": "stg_facebook_ads__campaign_history_tmp", "alias": "stg_facebook_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "617b7e683421a5712cc129d02e07eeb0f5876b7fdeb680429b4d6069b4dcdfc1"}, "tags": [], "refs": [], "sources": [["facebook_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.4137669, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__creative_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('creative_history') }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__creative_history_tmp.sql", "name": "stg_facebook_ads__creative_history_tmp", "alias": "stg_facebook_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "9cf5ffb0bc31c525388d169c90fb8b6150e5141777b14337c0fee0730faeecd9"}, "tags": [], "refs": [], "sources": [["facebook_ads", "creative_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__creative_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.425489, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history_tmp`"}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_facebook_ads_source", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__account_history_tmp"], "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('account_history') }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "tmp/stg_facebook_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__account_history_tmp.sql", "name": "stg_facebook_ads__account_history_tmp", "alias": "stg_facebook_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "caa1f4a119ca187458bff00bd8682eabffdba914962ff8ae7d4cfe55f25833ff"}, "tags": [], "refs": [], "sources": [["facebook_ads", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.435905, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_hourly_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n ad_squad_id,\n cast (date as {{ dbt_utils.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", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_hourly_report.sql", "name": "stg_snapchat_ads__ad_squad_hourly_report", "alias": "stg_snapchat_ads__ad_squad_hourly_report", "checksum": {"name": "sha256", "checksum": "14800ee64f8b1630c0c90d5cb719e87535e71e2b58bfa260f7f8af5cd342cbc9"}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report_tmp"], ["stg_snapchat_ads__ad_squad_hourly_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"ad_squad_id": {"name": "ad_squad_id", "description": "ID of the ad squad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_hourly_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.214473, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n ad_squad_id,\n cast (date as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n id as ad_id,\n name as ad_name,\n cast (created_at as {{ dbt_utils.type_timestamp() }}) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_history.sql", "name": "stg_snapchat_ads__ad_history", "alias": "stg_snapchat_ads__ad_history", "checksum": {"name": "sha256", "checksum": "82f98f40a73e789195df14b00e1901cd8741caff552ce68055e18246d1db00ce"}, "tags": [], "refs": [["stg_snapchat_ads__ad_history_tmp"], ["stg_snapchat_ads__ad_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the related ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.1878898, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n id as ad_id,\n name as ad_name,\n cast (created_at as \n timestamp\n) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n\n select \n id as ad_squad_id,\n name as ad_squad_name,\n cast (created_at as {{ dbt_utils.type_timestamp() }}) as created_at,\n campaign_id,\n cast (_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_history.sql", "name": "stg_snapchat_ads__ad_squad_history", "alias": "stg_snapchat_ads__ad_squad_history", "checksum": {"name": "sha256", "checksum": "b4cc533ef8df8a5fef7d9be218b5db4c9f8d77e056e0f212d3e17ccce4d1fb96"}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_history_tmp"], ["stg_snapchat_ads__ad_squad_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign in Snapchat.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.203561, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n\n select \n id as ad_squad_id,\n name as ad_squad_name,\n cast (created_at as \n timestamp\n) as created_at,\n campaign_id,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_hourly_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n ad_id,\n cast (date as {{ dbt_utils.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", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_hourly_report.sql", "name": "stg_snapchat_ads__ad_hourly_report", "alias": "stg_snapchat_ads__ad_hourly_report", "checksum": {"name": "sha256", "checksum": "e77687cbba617daeeaacdbc80fef8523c5f89b68417f8a4f8e5a9453432dc207"}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report_tmp"], ["stg_snapchat_ads__ad_hourly_report_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_hourly_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.198795, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n numeric\n) as \n \n attachment_quartile_1\n \n , \n cast(null as \n numeric\n) as \n \n attachment_quartile_2\n \n , \n cast(null as \n numeric\n) as \n \n attachment_quartile_3\n \n , \n cast(null as \n numeric\n) as \n \n attachment_total_view_time_millis\n \n , \n cast(null as \n numeric\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 cast(null as \n numeric\n) as \n \n quartile_1\n \n , \n cast(null as \n numeric\n) as \n \n quartile_2\n \n , \n cast(null as \n numeric\n) as \n \n quartile_3\n \n , \n cast(null as \n numeric\n) as \n \n saves\n \n , \n cast(null as \n numeric\n) as \n \n screen_time_millis\n \n , \n cast(null as \n numeric\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 cast(null as \n numeric\n) as \n \n video_views\n \n , \n cast(null as \n numeric\n) as \n \n view_completion\n \n , \n cast(null as \n numeric\n) as \n \n view_time_millis\n \n \n\n \n from base\n),\n\nfinal as (\n \n select \n ad_id,\n cast (date as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n id as creative_id,\n cast (created_at as {{ dbt_utils.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_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__creative_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_history.sql", "name": "stg_snapchat_ads__creative_history", "alias": "stg_snapchat_ads__creative_history", "checksum": {"name": "sha256", "checksum": "0f798f660d3e6a1d5c6e0882abc25e9822df55b0f24b003c82827746a1d5999d"}, "tags": [], "refs": [["stg_snapchat_ads__creative_history_tmp"], ["stg_snapchat_ads__creative_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "The name of the creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "The URL of the creative if the creative is of type 'web view'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.235203, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) 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 from base\n),\n\nfinal as (\n \n select \n id as creative_id,\n cast (created_at as \n timestamp\n) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_url_tag_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_url_tag_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n creative_id,\n key as param_key,\n value as param_value,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by creative_id, key order by updated_at desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__creative_url_tag_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_url_tag_history.sql", "name": "stg_snapchat_ads__creative_url_tag_history", "alias": "stg_snapchat_ads__creative_url_tag_history", "checksum": {"name": "sha256", "checksum": "42f2c59b8cc669d99bc71901cadbfa4ab93c186b0b5aeefe369eb84c2b3eb6a6"}, "tags": [], "refs": [["stg_snapchat_ads__creative_url_tag_history_tmp"], ["stg_snapchat_ads__creative_url_tag_history_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a URL paramter key-value pair for a creative in Snapchat.", "columns": {"creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "param_key": {"name": "param_key", "description": "The URL parameter key, i.e. UTM_SOURCE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "param_value": {"name": "param_value", "description": "The URL parameter value, i.e. Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_url_tag_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.238692, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n creative_id,\n key as param_key,\n value as param_value,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_account_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n id as ad_account_id,\n name as ad_account_name,\n cast (created_at as {{ dbt_utils.type_timestamp() }}) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__ad_account_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_account_history.sql", "name": "stg_snapchat_ads__ad_account_history", "alias": "stg_snapchat_ads__ad_account_history", "checksum": {"name": "sha256", "checksum": "ef3149f4a2e569dc38b5cb6b60e596d9e3d34366f453131f18a63c29d5b2d5ed"}, "tags": [], "refs": [["stg_snapchat_ads__ad_account_history_tmp"], ["stg_snapchat_ads__ad_account_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser": {"name": "advertiser", "description": "Name of advertiser", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency used by account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Account timezone", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.182633, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n string\n) as \n \n advertiser\n \n , \n cast(null as \n timestamp\n) as \n \n created_at\n \n , \n cast(null as \n string\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 cast(null as \n string\n) as \n \n timezone\n \n , \n cast(null as \n string\n) as \n \n type\n \n , \n cast(null as \n timestamp\n) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n id as ad_account_id,\n name as ad_account_name,\n cast (created_at as \n timestamp\n) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp", "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_hourly_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n campaign_id,\n cast (date as {{ dbt_utils.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", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__campaign_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__campaign_hourly_report.sql", "name": "stg_snapchat_ads__campaign_hourly_report", "alias": "stg_snapchat_ads__campaign_hourly_report", "checksum": {"name": "sha256", "checksum": "4ff6a885fd561a0ae405c2d8805742758bccbf18d15e419a48bb3d854eb473b5"}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report_tmp"], ["stg_snapchat_ads__campaign_hourly_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"campaign_id": {"name": "campaign_id", "description": "ID of campaign", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_hourly_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.2300959, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n campaign_id,\n cast (date as \n timestamp\n) 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_history"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select\n id as campaign_id,\n ad_account_id,\n cast (created_at as {{ dbt_utils.type_timestamp() }}) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt_utils.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "stg_snapchat_ads__campaign_history.sql", "original_file_path": "models/stg_snapchat_ads__campaign_history.sql", "name": "stg_snapchat_ads__campaign_history", "alias": "stg_snapchat_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "72850da30953e31d88a58504ebe308f7fa155c6099bbf107858853dfba12a26a"}, "tags": [], "refs": [["stg_snapchat_ads__campaign_history_tmp"], ["stg_snapchat_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The id of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1667945776.219031, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 \n timestamp\n) 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 \n timestamp\n) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n id as campaign_id,\n ad_account_id,\n cast (created_at as \n timestamp\n) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n cast (updated_at as \n timestamp\n) as updated_at,\n row_number() over (partition by 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('creative_history') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "tmp/stg_snapchat_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "name": "stg_snapchat_ads__creative_history_tmp", "alias": "stg_snapchat_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "97f2460634e450cdce998385dac55f4754305b6c9ea9c8756b1d8cd6ef961e4d"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "creative_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.748014, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_account_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_account_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_account_history') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__ad_account_history_tmp", "alias": "stg_snapchat_ads__ad_account_history_tmp", "checksum": {"name": "sha256", "checksum": "92091ce537ab3d626fde67bcce6f168cb41ab6ee9975afa0551603e42cc5d78a"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.758524, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_hourly_report_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_hourly_report') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "alias": "stg_snapchat_ads__ad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "c1fd36fe859740eae7e8c35022731b4090dd0e6a0cc598f8ce7275134e500fe0"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_hourly_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.7689831, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_url_tag_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('creative_url_tag_history') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "alias": "stg_snapchat_ads__creative_url_tag_history_tmp", "checksum": {"name": "sha256", "checksum": "65d5edd0f0e93654debad17d56afa3f77abd57601fa4e296320dec000d272056"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "creative_url_tag_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.77971, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_url_tag_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_hourly_report_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_squad_hourly_report') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "alias": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "aa1aa691bef011ccfd98f91b4b82a8838fab485131f0e17f53799f7c21bb09f3"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_squad_hourly_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.7916632, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "tmp/stg_snapchat_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "name": "stg_snapchat_ads__campaign_history_tmp", "alias": "stg_snapchat_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "8ba400ddeeb2cf5c0cb71d6361ee8455d1a5272936dce07eaade1606a596cfdb"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.8020868, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_history') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "name": "stg_snapchat_ads__ad_history_tmp", "alias": "stg_snapchat_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "3cbc363ef9fe699bcc42261d8eda6184c55f2574efa083ca7091aa5ddedd42e9"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.812562, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_history"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_history_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('ad_squad_history') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__ad_squad_history_tmp", "alias": "stg_snapchat_ads__ad_squad_history_tmp", "checksum": {"name": "sha256", "checksum": "20be450378d3826688fd5d75226187b30b17782d6ea922076111a4d6440598f9"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "ad_squad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.8245702, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history_tmp`"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_snapchat_ads_source", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_hourly_report_tmp"], "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('campaign_hourly_report') }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "alias": "stg_snapchat_ads__campaign_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "b18dc4fa023f874afa53107adf3b50bf02fa4ac757d01f176279822b37a3c1ee"}, "tags": [], "refs": [], "sources": [["snapchat_ads", "campaign_hourly_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1667945771.834989, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report_tmp`"}, "model.microsoft_ads.microsoft_ads__ad_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__ad_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n {{ dbt_utils.group_by(14) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__ad_report.sql", "original_file_path": "models/microsoft_ads__ad_report.sql", "name": "microsoft_ads__ad_report", "alias": "microsoft_ads__ad_report", "checksum": {"name": "sha256", "checksum": "b1bf923338efa02f90efd60b96c91cbdbe12414237459994b2aefc5067484985"}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report"], ["stg_microsoft_ads__ad_history"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1667945776.404757, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\n\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`"}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__ad_group_report"], "unique_id": "model.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 date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\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='microsoft_ads__ad_group_passthrough_metrics', transform = 'sum') }}\n from report\n left join accounts\n on report.account_id = accounts.account_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n {{ dbt_utils.group_by(11)}}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__ad_group_report.sql", "original_file_path": "models/microsoft_ads__ad_group_report.sql", "name": "microsoft_ads__ad_group_report", "alias": "microsoft_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "85070dccbdefbc4f56fe9f7e941913c0b5981e774816bbe6dfebf17979e5e49b"}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_daily_report"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1667945776.3949142, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report`\n\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`"}, "model.microsoft_ads.microsoft_ads__keyword_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__keyword_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n keywords.keyword_name,\n keywords.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.keyword_id = keywords.keyword_id\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__keyword_report.sql", "original_file_path": "models/microsoft_ads__keyword_report.sql", "name": "microsoft_ads__keyword_report", "alias": "microsoft_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "d4ef7c4365c804fe1f79aa5f5f161ef6d279e6913e8fbc01433a0fb128aefd74"}, "tags": [], "refs": [["stg_microsoft_ads__keyword_daily_report"], ["stg_microsoft_ads__keyword_history"], ["stg_microsoft_ads__ad_history"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1667945776.4244428, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\n\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n keywords.keyword_name,\n keywords.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.keyword_id = keywords.keyword_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`"}, "model.microsoft_ads.microsoft_ads__url_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__url_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n {{ dbt_utils.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( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_source') }} , 'Bing') as utm_source,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_medium') }}, 'cpc') as utm_medium,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_campaign') }}, campaigns.campaign_name) as utm_campaign,\n coalesce( {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_content') }}, ad_groups.ad_group_name) as utm_content,\n {% else %}\n\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('ads.final_url', 'utm_content') }} as utm_content,\n {% endif %}\n\n {{ dbt_utils.get_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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n {{ dbt_utils.group_by(21) }}\n), \n\nfiltered as (\n\n select * \n from joined\n where base_url IS NOT NULL\n)\n\nselect *\nfrom filtered", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__url_report.sql", "original_file_path": "models/microsoft_ads__url_report.sql", "name": "microsoft_ads__url_report", "alias": "microsoft_ads__url_report", "checksum": {"name": "sha256", "checksum": "379612bc6c27dfd49c8d14ba1043b64e1df1e313db6697dbea06d91d87863535"}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report"], ["stg_microsoft_ads__ad_history"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "Which campaign the keyword came from; extracted from the `final_url`.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1667945776.449682, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\n\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n \n\n \n split(\n ads.final_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n\n \n\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n \n\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n), \n\nfiltered as (\n\n select * \n from joined\n where base_url IS NOT NULL\n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`"}, "model.microsoft_ads.microsoft_ads__account_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__account_report"], "unique_id": "model.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 date_day,\n accounts.account_name,\n accounts.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(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 {{ dbt_utils.group_by(8)}}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__account_report.sql", "original_file_path": "models/microsoft_ads__account_report.sql", "name": "microsoft_ads__account_report", "alias": "microsoft_ads__account_report", "checksum": {"name": "sha256", "checksum": "f0ad02c3dcce9afcdc378fbdfb9b04befc8adf7dc71fbb9a622acc519f645c75"}, "tags": [], "refs": [["stg_microsoft_ads__account_daily_report"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_timezone": {"name": "account_timezone", "description": "The time zone associated with this account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1667945776.3865972, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n)\n\n, joined as (\n\n select\n date_day,\n accounts.account_name,\n accounts.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(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`"}, "model.microsoft_ads.microsoft_ads__search_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__search_report"], "unique_id": "model.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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n keywords.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.keyword_id = keywords.keyword_id\n {{ dbt_utils.group_by(16) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__search_report.sql", "original_file_path": "models/microsoft_ads__search_report.sql", "name": "microsoft_ads__search_report", "alias": "microsoft_ads__search_report", "checksum": {"name": "sha256", "checksum": "5a23d161c13bab101fc43751d28c21e7dc514b791f53513f5f391112db77c371"}, "tags": [], "refs": [["stg_microsoft_ads__search_daily_report"], ["stg_microsoft_ads__keyword_history"], ["stg_microsoft_ads__ad_history"], ["stg_microsoft_ads__ad_group_history"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The search query string associated with this record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__search_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1667945776.436049, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`\n\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 `dbt-package-testing`.`ad_reporting_integration_tests_v1_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.date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n ads.ad_name,\n ads.ad_id,\n keywords.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 left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n left join keywords\n on report.keyword_id = keywords.keyword_id\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`"}, "model.microsoft_ads.microsoft_ads__campaign_report": {"compiled": true, "resource_type": "model", "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"]}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_microsoft_ads", "fqn": ["microsoft_ads", "microsoft_ads__campaign_report"], "unique_id": "model.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 date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.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(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 left join campaigns\n on report.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(12)}}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "microsoft_ads__campaign_report.sql", "original_file_path": "models/microsoft_ads__campaign_report.sql", "name": "microsoft_ads__campaign_report", "alias": "microsoft_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "d6e2fffaf6595a140dd62c1c3adfc13a12dc71c81d23293cbdc7a942069a0252"}, "tags": [], "refs": [["stg_microsoft_ads__campaign_daily_report"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "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": {"date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_timezone": {"name": "campaign_timezone", "description": "The time zone associated with this campaign.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1667945776.413614, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n date_day,\n accounts.account_name,\n accounts.account_id,\n campaigns.campaign_name,\n campaigns.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(clicks) as clicks,\n sum(impressions) as impressions,\n sum(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 left join campaigns\n on report.campaign_id = campaigns.campaign_id\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__campaign_report.sql", "original_file_path": "models/stg_twitter_ads__campaign_report.sql", "name": "stg_twitter_ads__campaign_report", "alias": "stg_twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "6650a0415c7f5f2610cf0f64b87fb8db8fabdb6039c32d90c348c9b00670eb29"}, "tags": [], "refs": [["stg_twitter_ads__campaign_report_tmp"], ["stg_twitter_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the performance of an ad campaign on a given day, for its placement in Twitter.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the campaign on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.7109, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n campaign_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp", "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_history"], "unique_id": "model.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 from source\n\n), \n\nfinal as (\n\n select\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 id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__line_item_history.sql", "original_file_path": "models/stg_twitter_ads__line_item_history.sql", "name": "stg_twitter_ads__line_item_history", "alias": "stg_twitter_ads__line_item_history", "checksum": {"name": "sha256", "checksum": "46a8268335b747ca45d70e2b6f3c9a426b26a655d751cdc0843b4a3d41af8598"}, "tags": [], "refs": [["stg_twitter_ads__line_item_history_tmp"], ["stg_twitter_ads__line_item_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of each line item. The versions can be differentiated by the updated_at timestamp.", "columns": {"advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "target_cpa": {"name": "target_cpa", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.685063, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp", "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.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", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__line_item_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_report.sql", "name": "stg_twitter_ads__line_item_report", "alias": "stg_twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "1d7ebf7a0f338591ee0ccff54fe8e2b9f9099139c0baf1f621a8c33faeed1e38"}, "tags": [], "refs": [["stg_twitter_ads__line_item_report_tmp"], ["stg_twitter_ads__line_item_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the performance of a line item (ad group) on a given day, for its placement in Twitter.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.7168078, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n line_item_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp", "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_history"], "unique_id": "model.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 from source\n\n), \n\nfinal as (\n\n select\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 id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__campaign_history.sql", "original_file_path": "models/stg_twitter_ads__campaign_history.sql", "name": "stg_twitter_ads__campaign_history", "alias": "stg_twitter_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "774d386e9ad64cc31bc4067ef71444c35b0dd5b24e7635905ca4f774d6996934"}, "tags": [], "refs": [["stg_twitter_ads__campaign_history_tmp"], ["stg_twitter_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of each campaign. The versions can be differentiated by the updated_at timestamp.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The time the campaign will end", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "is_standard_delivery": {"name": "is_standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.669296, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_report"], "unique_id": "model.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 from source\n\n), spend_calc as (\n\n select\n {{ dbt_utils.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", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_report.sql", "name": "stg_twitter_ads__promoted_tweet_report", "alias": "stg_twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "c601826b4c1283a89eef7936949615070c86d9ad479759b463173348c7b74ebf"}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report_tmp"], ["stg_twitter_ads__promoted_tweet_report_tmp"]], "sources": [], "metrics": [], "description": "Each record represents the performance of a promoted tweet on a given day, in the tweet's defined placement.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend (in micros) for the promoted tweet on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the related promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the promoted tweet on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.696534, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), spend_calc as (\n\n select\n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n promoted_tweet_id,\n placement,\n clicks as clicks,\n impressions as impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks as url_clicks\n\n \n\n\n\n\n \n from renamed\n\n)\n\nselect * from spend_calc", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`"}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_tmp", "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \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", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__tweet.sql", "original_file_path": "models/stg_twitter_ads__tweet.sql", "name": "stg_twitter_ads__tweet", "alias": "stg_twitter_ads__tweet", "checksum": {"name": "sha256", "checksum": "495071fcb565d9bcb5f607119259a6a0db5f562833a4c5b4e6b415947b763e21"}, "tags": [], "refs": [["stg_twitter_ads__tweet_tmp"], ["stg_twitter_ads__tweet_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a tweet, promoted or not.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "Unique identifier of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "If provided, the non-public title of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "Full text of the tweet's content.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.7267919, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from base\n),\n\nfinal as (\n \n select \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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`"}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history_tmp", "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__account_history"], "unique_id": "model.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 from source\n\n), \n\nfinal as (\n\n select\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 id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__account_history.sql", "original_file_path": "models/stg_twitter_ads__account_history.sql", "name": "stg_twitter_ads__account_history", "alias": "stg_twitter_ads__account_history", "checksum": {"name": "sha256", "checksum": "9ac9bf89b2163524505de7f16c38d7103b3af267458bf5190428238b25b87bd4"}, "tags": [], "refs": [["stg_twitter_ads__account_history_tmp"], ["stg_twitter_ads__account_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of each account. The versions can be differentiated by the updated_at timestamp.", "columns": {"approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_switched_timestamp": {"name": "timezone_switched_timestamp", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "salt": {"name": "salt", "description": "The random encryption key used to hash data.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__account_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.657681, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_url_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.dbt_utils.get_url_parameter"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp", "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet_url"], "unique_id": "model.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 from source\n\n), \n\nfinal as (\n\n select\n display_url,\n expanded_url,\n index,\n indices,\n tweet_id,\n url,\n {{ dbt_utils.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 {{ dbt_utils.get_url_parameter('expanded_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('expanded_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('expanded_url', 'utm_campaign') }} as utm_campaign,\n {{ dbt_utils.get_url_parameter('expanded_url', 'utm_content') }} as utm_content,\n {{ dbt_utils.get_url_parameter('expanded_url', 'utm_term') }} as utm_term\n \n from fields\n\n)\n\nselect * from final", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__tweet_url.sql", "original_file_path": "models/stg_twitter_ads__tweet_url.sql", "name": "stg_twitter_ads__tweet_url", "alias": "stg_twitter_ads__tweet_url", "checksum": {"name": "sha256", "checksum": "36afff7a6b77de2e15d6bff3bf9ed9bd4d05157920ed28a9999597874ce1953a"}, "tags": [], "refs": [["stg_twitter_ads__tweet_url_tmp"], ["stg_twitter_ads__tweet_url_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a URL used in a tweet.", "columns": {"display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "The 't.co' shortened URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet_url.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.705208, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\n display_url,\n expanded_url,\n index,\n indices,\n tweet_id,\n url,\n \n\n \n split(\n expanded_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'android-app://',\n ''\n )\n \n\n,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_host,\n '/' || \n safe_cast(\n\n \n split(\n \n\n case when \n \n length(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ) = 0 \n then ''\n else \n substr(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n -1 * (\n \n length(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '/'\n \n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n \n\n,\n 'https://',\n ''\n )\n \n\n,\n '?'\n \n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as \n string\n)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n \n from fields\n\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_history"], "unique_id": "model.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 from source\n\n), \n\nfinal as (\n\n select\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 id order by updated_at desc) = 1 as is_latest_version\n from fields \n)\n\nselect * from final", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_history.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_history.sql", "name": "stg_twitter_ads__promoted_tweet_history", "alias": "stg_twitter_ads__promoted_tweet_history", "checksum": {"name": "sha256", "checksum": "c80a0cb29ef10133607a7a85d12f01b4a3dfe4100939746893a2ac56d17dd03b"}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_history_tmp"], ["stg_twitter_ads__promoted_tweet_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a version of each promoted tweet. The versions can be differentiated by the updated_at timestamp.", "columns": {"approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945776.690637, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_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 from source\n\n), \n\nfinal as (\n\n select\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 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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.tweet_url"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_url_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('tweet_url') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_url_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "name": "stg_twitter_ads__tweet_url_tmp", "alias": "stg_twitter_ads__tweet_url_tmp", "checksum": {"name": "sha256", "checksum": "9a7338e00449b6c913d5f3c059679ed5be9c64d82f22bb155f6b807124089552"}, "tags": [], "refs": [], "sources": [["twitter_ads", "tweet_url"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.2598631, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_url_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.tweet"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('tweet') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_tmp.sql", "name": "stg_twitter_ads__tweet_tmp", "alias": "stg_twitter_ads__tweet_tmp", "checksum": {"name": "sha256", "checksum": "ed6397b8a2245ad4f4e79b75ed4ed8de08fdc4049d651c49e3849db6c073cafd"}, "tags": [], "refs": [], "sources": [["twitter_ads", "tweet"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.270587, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_report_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('promoted_tweet_report') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "alias": "stg_twitter_ads__promoted_tweet_report_tmp", "checksum": {"name": "sha256", "checksum": "6bf2743294837bc2b2316127f2df7a40126f942a226653c2f7668e78d972856a"}, "tags": [], "refs": [], "sources": [["twitter_ads", "promoted_tweet_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.28126, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_history"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_history_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('line_item_history') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__line_item_history_tmp", "alias": "stg_twitter_ads__line_item_history_tmp", "checksum": {"name": "sha256", "checksum": "d796be56366271bfcc2f2d4d23b50372472b0e47a1ba5d62f09ea7218d842b07"}, "tags": [], "refs": [], "sources": [["twitter_ads", "line_item_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.292001, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_report_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_report') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "name": "stg_twitter_ads__campaign_report_tmp", "alias": "stg_twitter_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "cde4096c85a4069b4865fe37600bed81c625f2ec5e1cb91863d50888a217f562"}, "tags": [], "refs": [], "sources": [["twitter_ads", "campaign_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.303728, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_history_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "name": "stg_twitter_ads__campaign_history_tmp", "alias": "stg_twitter_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "343754878288e6e847d9af5524d0dd1b09edffac90a7e83f0f8dbd610c028837"}, "tags": [], "refs": [], "sources": [["twitter_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.314384, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_report_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('line_item_report') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__line_item_report_tmp", "alias": "stg_twitter_ads__line_item_report_tmp", "checksum": {"name": "sha256", "checksum": "9e053b03293d2511468496eb5fafd60ca8a3883594d2b2a24bb61862fb53c552"}, "tags": [], "refs": [], "sources": [["twitter_ads", "line_item_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.336878, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.account_history"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__account_history_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('account_history') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "tmp/stg_twitter_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__account_history_tmp.sql", "name": "stg_twitter_ads__account_history_tmp", "alias": "stg_twitter_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "76ca411a663d62ed96988cf38c0ea000cb691006c8a9f4a6c326f357d874a7fc"}, "tags": [], "refs": [], "sources": [["twitter_ads", "account_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__account_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.347348, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history_tmp`"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_history"]}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_history_tmp"], "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('promoted_tweet_history') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "alias": "stg_twitter_ads__promoted_tweet_history_tmp", "checksum": {"name": "sha256", "checksum": "b528c88b68e5a01988e4fb4467e2298ac2be47cfe74ba3ac840044fd214f59da"}, "tags": [], "refs": [], "sources": [["twitter_ads", "promoted_tweet_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1667945772.3581598, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history_tmp`"}, "model.linkedin.linkedin_ads__campaign_group_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__campaign_group_report"], "unique_id": "model.linkedin.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 from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n {{ dbt_utils.group_by(n=12) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__campaign_group_report.sql", "original_file_path": "models/linkedin_ads__campaign_group_report.sql", "name": "linkedin_ads__campaign_group_report", "alias": "linkedin_ads__campaign_group_report", "checksum": {"name": "sha256", "checksum": "bc4b9b9b612d1fbbecffc8059005e832e333df998e1b9aad50a3a2dc71125885"}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the campaign group level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1667945776.916708, "compiled_code": "\n\nwith campaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`"}, "model.linkedin.linkedin_ads__creative_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__creative_report"], "unique_id": "model.linkedin.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 from {{ var('ad_analytics_by_creative') }}\n),\n\nfinal as (\n\n select \n report.date_day,\n creative.creative_id,\n creative.version_tag,\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.type,\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 creative.call_to_action_label_type,\n account.currency,\n creative.last_modified_at,\n creative.created_at,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join campaign \n on creative.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n {{ dbt_utils.group_by(n=18) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__creative_report.sql", "original_file_path": "models/linkedin_ads__creative_report.sql", "name": "linkedin_ads__creative_report", "alias": "linkedin_ads__creative_report", "checksum": {"name": "sha256", "checksum": "ad0eb0c1b25863f9e362dc4aa0d568a06f4a12bed2bd47cfb6bb4cb51ac658d3"}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__campaign_group_history"], ["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the creative level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the creative's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the creative's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text with Sponsored Link to landing page on your site.\nSPONSORED_STATUS_UPDATE - Sponsored status update from a profile page.\nSPONSORED_INMAILS - Single message ad delivered to the member's inbox\nSPONSORED_MESSAGE - Conversation ad containing a tree of pre-determined messages delivered to the member's inbox\nSPONSORED_VIDEO - Sponsored videos.\nSPONSORED_UPDATE_CAROUSEL - Sponsored Carousels\nFOLLOW_COMPANY_V2 - Dynamic Follow Ad\nSPOTLIGHT_V2 - Dynamic Spotlight Ad\nJOBS_V2 - Dynamic Job Ad\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the creative.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "call_to_action_label_type": {"name": "call_to_action_label_type", "description": "The labeled call-to-action on this ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__creative_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1667945776.9286, "compiled_code": "\n\nwith creative as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\n),\n\nfinal as (\n\n select \n report.date_day,\n creative.creative_id,\n creative.version_tag,\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.type,\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 creative.call_to_action_label_type,\n account.currency,\n creative.last_modified_at,\n creative.created_at,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join creative \n on report.creative_id = creative.creative_id\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`"}, "model.linkedin.linkedin_ads__campaign_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__campaign_report"], "unique_id": "model.linkedin.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 from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \n report.date_day,\n campaign.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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n {{ dbt_utils.group_by(n=29) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__campaign_report.sql", "original_file_path": "models/linkedin_ads__campaign_report.sql", "name": "linkedin_ads__campaign_report", "alias": "linkedin_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "1c31aeced5e5a136b419b285d15509067f2556a279da032a1002b4a3fa18879c"}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__campaign_group_history"], ["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the campaign level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1667945776.907957, "compiled_code": "\n\nwith campaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \n report.date_day,\n campaign.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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\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\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`"}, "model.linkedin.linkedin_ads__account_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__account_report"], "unique_id": "model.linkedin.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 from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join account \n on campaign.account_id = account.account_id\n\n {{ dbt_utils.group_by(n=9) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__account_report.sql", "original_file_path": "models/linkedin_ads__account_report.sql", "name": "linkedin_ads__account_report", "alias": "linkedin_ads__account_report", "checksum": {"name": "sha256", "checksum": "081d8687fbed2359f5893891308f9b3a0f25a7982a8b206f416f1a60d5c1aa6f"}, "tags": [], "refs": [["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the account level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1667945776.890361, "compiled_code": "\n\nwith account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n left join account \n on campaign.account_id = account.account_id\n\n group by 1,2,3,4,5,6,7,8,9\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`"}, "model.linkedin.linkedin_ads__url_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["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"]}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_linkedin_ads", "fqn": ["linkedin", "linkedin_ads__url_report"], "unique_id": "model.linkedin.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),\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 from {{ var('ad_analytics_by_creative') }}\n),\n\nfinal as (\n\n select \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 creative.creative_id,\n creative.version_tag,\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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\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 left join campaign \n on creative.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n where creative.click_uri is not null\n\n {{ dbt_utils.group_by(n=19) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "linkedin_ads__url_report.sql", "original_file_path": "models/linkedin_ads__url_report.sql", "name": "linkedin_ads__url_report", "alias": "linkedin_ads__url_report", "checksum": {"name": "sha256", "checksum": "4608912d1404e112239e56eb507fa1f1b367081307127a57687d70b340ea847e"}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__campaign_group_history"], ["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance of ads at the url level.", "columns": {"account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the creative's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the creative's campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "compiled_path": "target/compiled/linkedin/models/linkedin_ads__url_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1667945776.941211, "compiled_code": "\n\nwith creative as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\n),\n\nfinal as (\n\n select \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 creative.creative_id,\n creative.version_tag,\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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost\n\n \n\n\n\n\n \n from report \n left join creative \n on report.creative_id = creative.creative_id\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n left join account \n on campaign.account_id = account.account_id\n\n where creative.click_uri is not null\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": [], "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_history_account_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_history_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "not_null_stg_microsoft_ads__account_history_account_id", "alias": "not_null_stg_microsoft_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.7807648, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_microsoft_ads__account_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at.5975327479": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at.5975327479", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at", "alias": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7"}, "created_at": 1667945772.784422, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_history`\n group by account_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__account_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_daily_report_account_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__account_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.804576, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_microsoft_ads__account_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_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_cc3a3d15707b6220c07fd845626d47d3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__account_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3"}, "created_at": 1667945772.807884, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__account_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_history_ad_group_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.8206148, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_microsoft_ads__ad_group_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at.12004c9de0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at.12004c9de0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at", "alias": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb"}, "created_at": 1667945772.8242471, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_group_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7": {"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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.832075, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_microsoft_ads__ad_group_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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.8792b4adf4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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.8792b4adf4", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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_3da4052d148940c4b772fa07b9cd0016", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_group_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016"}, "created_at": 1667945772.835724, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_group_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_history_ad_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "not_null_stg_microsoft_ads__ad_history_ad_id", "alias": "not_null_stg_microsoft_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.8496919, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_microsoft_ads__ad_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at.1f05b4ee6f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at.1f05b4ee6f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at", "alias": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb"}, "created_at": 1667945772.8532999, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_history`\n group by ad_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_daily_report_ad_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.86114, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_microsoft_ads__ad_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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.80e8146841": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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.80e8146841", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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_29e31bfeb4535a5db2d2c94e28201269", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__ad_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269"}, "created_at": 1667945772.8647811, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_history_campaign_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "alias": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.8790689, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_microsoft_ads__campaign_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at.d2a9279427": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at.d2a9279427", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at", "alias": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0"}, "created_at": 1667945772.882337, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\n group by campaign_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__campaign_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__campaign_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.890424, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_microsoft_ads__campaign_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_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__campaign_daily_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_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_0a679e9606c18c2d49406108e30d9e3d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__campaign_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0a679e9606c18c2d49406108e30d9e3d"}, "created_at": 1667945772.894041, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`\n group by date_day, account_id, campaign_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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__campaign_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_history_keyword_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "alias": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.90672, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_microsoft_ads__keyword_history"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at.e1c525286c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at.e1c525286c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at", "alias": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67"}, "created_at": 1667945772.910004, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\n group by keyword_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__keyword_history"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__keyword_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.918082, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_microsoft_ads__keyword_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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.c6f46d202a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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.c6f46d202a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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_9a7282cfedb49cdf2e4d14422bce0ed7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__keyword_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7"}, "created_at": 1667945772.921375, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__keyword_daily_report"}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__search_daily_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__search_daily_report_search_query"], "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_microsoft_ads__search_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945772.936949, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_query", "file_key_name": "models.stg_microsoft_ads__search_daily_report"}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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.03cf031d0c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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"], "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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.03cf031d0c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379.sql", "original_file_path": "models/stg_microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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_b05df3e2693998bbea08961dfab31379", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_microsoft_ads__search_daily_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379"}, "created_at": 1667945772.940253, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, language, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_microsoft_ads__search_daily_report"}, "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__advertiser_report_date_day", "alias": "not_null_tiktok_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.054996, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__advertiser_report"}, "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_advertiser_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__advertiser_report_advertiser_id", "alias": "not_null_tiktok_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.0582988, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.tiktok_ads__advertiser_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day.d298bb3cf9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day.d298bb3cf9", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89\") }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89"}, "created_at": 1667945773.0615869, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__advertiser_report`\n group by advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__advertiser_report"}, "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__ad_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__ad_report_date_day", "alias": "not_null_tiktok_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.069742, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__ad_report"}, "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_ad_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__ad_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__ad_report_ad_id", "alias": "not_null_tiktok_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.07296, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.tiktok_ads__ad_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85\") }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85"}, "created_at": 1667945773.07655, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__ad_report"}, "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__ad_group_report_date_day", "alias": "not_null_tiktok_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.086449, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__ad_group_report"}, "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_ad_group_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.089695, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.tiktok_ads__ad_group_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0\") }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0"}, "created_at": 1667945773.09296, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__ad_group_report"}, "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__campaign_report_date_day", "alias": "not_null_tiktok_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.102087, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__campaign_report"}, "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_campaign_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_campaign_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__campaign_report_campaign_id", "alias": "not_null_tiktok_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.105328, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.tiktok_ads__campaign_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day.03c4f86b19": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day.03c4f86b19", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645\") }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645"}, "created_at": 1667945773.108943, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__campaign_report"}, "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_date_day"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__url_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__url_report_date_day", "alias": "not_null_tiktok_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.117579, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.tiktok_ads__url_report"}, "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_ad_id"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__url_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__url_report_ad_id", "alias": "not_null_tiktok_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.1208389, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.tiktok_ads__url_report"}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50\") }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50.sql", "original_file_path": "models/tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50"}, "created_at": 1667945773.124129, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_tiktok_ads`.`tiktok_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.tiktok_ads__url_report"}, "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_campaign_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__campaign_report_campaign_id", "alias": "not_null_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.298244, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.twitter_ads__campaign_report"}, "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__campaign_report_date_day", "alias": "not_null_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.301606, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.twitter_ads__campaign_report"}, "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__campaign_report_placement", "alias": "not_null_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.305095, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__campaign_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id.2b09fa5421": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id", "placement", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id.2b09fa5421", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63\") }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id", "alias": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63"}, "created_at": 1667945773.3084018, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, placement, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__campaign_report"}, "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__line_item_report_date_day", "alias": "not_null_twitter_ads__line_item_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.317605, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.twitter_ads__line_item_report"}, "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_line_item_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/twitter.yml", "name": "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": ""}, "tags": [], "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_line_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.320862, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "line_item_id", "file_key_name": "models.twitter_ads__line_item_report"}, "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__line_item_report_placement", "alias": "not_null_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.324074, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__line_item_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "line_item_id", "placement", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168\") }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168"}, "created_at": 1667945773.32805, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, line_item_id, placement, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__line_item_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__line_item_report"}, "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__account_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__account_report_date_day", "alias": "not_null_twitter_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.337734, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.twitter_ads__account_report"}, "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__account_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__account_report_placement", "alias": "not_null_twitter_ads__account_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.341001, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__account_report"}, "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_account_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__account_report_account_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__account_report_account_id", "alias": "not_null_twitter_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.344249, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.twitter_ads__account_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement.a29cf85a4f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "placement"], "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement.a29cf85a4f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f\") }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement", "alias": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f"}, "created_at": 1667945773.3475149, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, placement\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__account_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__account_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_date_day", "alias": "not_null_twitter_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.3561752, "column_name": "date_day", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_line_item_id.4982336b04": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_line_item_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_line_item_id.4982336b04", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_line_item_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_line_item_id", "alias": "not_null_twitter_ads__keyword_report_line_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.3597271, "column_name": "line_item_id", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword.7f254683d7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_keyword"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword.7f254683d7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_keyword.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_keyword", "alias": "not_null_twitter_ads__keyword_report_keyword", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.3629708, "column_name": "keyword", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_placement.1cf3231796": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_placement.1cf3231796", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_placement", "alias": "not_null_twitter_ads__keyword_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.366223, "column_name": "placement", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id.66e2c0d578": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "line_item_id", "keyword", "placement", "account_id", "campaign_id"], "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id.66e2c0d578", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8\") }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id", "alias": "dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e65a2a357adb48dc61266acb21420c8"}, "created_at": 1667945773.369487, "column_name": null, "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__promoted_tweet_report_placement", "alias": "not_null_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.3796082, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__promoted_tweet_report"}, "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "name": "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": ""}, "tags": [], "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.383171, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__promoted_tweet_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1\") }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1"}, "created_at": 1667945773.386446, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__promoted_tweet_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__promoted_tweet_report"}, "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_date_day"], "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__url_report_date_day.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__url_report_date_day", "alias": "not_null_twitter_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.396599, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.twitter_ads__url_report"}, "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_placement"], "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__url_report_placement.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__url_report_placement", "alias": "not_null_twitter_ads__url_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.399839, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.twitter_ads__url_report"}, "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_promoted_tweet_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__url_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__url_report_promoted_tweet_id", "alias": "not_null_twitter_ads__url_report_promoted_tweet_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_promoted_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.4034328, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__url_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7\") }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7"}, "created_at": 1667945773.40674, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads`.`twitter_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.twitter_ads__url_report"}, "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__url_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__url_report_date_day", "alias": "not_null_pinterest_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.482184, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__url_report"}, "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_pin_promotion_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__url_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__url_report_pin_promotion_id", "alias": "not_null_pinterest_ads__url_report_pin_promotion_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_pin_promotion_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.485701, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "pin_promotion_id", "file_key_name": "models.pinterest_ads__url_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4\") }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4"}, "created_at": 1667945773.4890082, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__url_report"}, "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__ad_group_report_date_day", "alias": "not_null_pinterest_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.4993489, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__ad_group_report"}, "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_ad_group_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/pinterest.yml", "name": "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": ""}, "tags": [], "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.5026062, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.pinterest_ads__ad_group_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "advertiser_id", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506\") }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506"}, "created_at": 1667945773.505878, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, advertiser_id, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__ad_group_report"}, "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__campaign_report_date_day", "alias": "not_null_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.5150561, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__campaign_report"}, "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_campaign_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__campaign_report_campaign_id", "alias": "not_null_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.518614, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.pinterest_ads__campaign_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day.b5752d5279": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day.b5752d5279", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334\") }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334"}, "created_at": 1667945773.521878, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__campaign_report"}, "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__advertiser_report_date_day", "alias": "not_null_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.5305011, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__advertiser_report"}, "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_advertiser_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__advertiser_report_advertiser_id", "alias": "not_null_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.5337641, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.pinterest_ads__advertiser_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day.990badbc11": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day.990badbc11", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f\") }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f"}, "created_at": 1667945773.5370061, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__advertiser_report`\n group by advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__advertiser_report"}, "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__keyword_report_date_day", "alias": "not_null_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.545084, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__keyword_report"}, "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_keyword_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__keyword_report_keyword_id", "alias": "not_null_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.548312, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.pinterest_ads__keyword_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f\") }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f"}, "created_at": 1667945773.5519412, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__keyword_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__keyword_report"}, "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_date_day"], "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__pin_promotion_report_date_day", "alias": "not_null_pinterest_ads__pin_promotion_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.561514, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.pinterest_ads__pin_promotion_report"}, "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id"], "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "name": "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": ""}, "tags": [], "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.564797, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "pin_promotion_id", "file_key_name": "models.pinterest_ads__pin_promotion_report"}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day"], "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c\") }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c.sql", "original_file_path": "models/pinterest.yml", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "alias": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c"}, "created_at": 1667945773.568078, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest`.`pinterest_ads__pin_promotion_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.pinterest_ads__pin_promotion_report"}, "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('google_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__url_report_base_url"], "unique_id": "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__url_report_base_url.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__url_report_base_url", "alias": "not_null_google_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__url_report_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.637585, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "base_url", "file_key_name": "models.google_ads__url_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day.a59b8e007f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day.a59b8e007f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b\") }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b"}, "created_at": 1667945773.6409411, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__url_report"}, "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('google_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__account_report_account_id"], "unique_id": "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__account_report_account_id.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__account_report_account_id", "alias": "not_null_google_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.649585, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.google_ads__account_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day.c52089771e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day.c52089771e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9\") }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day", "alias": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9"}, "created_at": 1667945773.6528409, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__account_report`\n group by account_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__account_report"}, "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('google_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__ad_group_report_ad_group_id"], "unique_id": "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/google_ads.yml", "name": "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": ""}, "tags": [], "refs": [["google_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.660971, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.google_ads__ad_group_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day.7c8e1c1a2f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day.7c8e1c1a2f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f\") }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f"}, "created_at": 1667945773.6642282, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__ad_group_report"}, "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('google_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__ad_report_ad_id"], "unique_id": "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__ad_report_ad_id.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__ad_report_ad_id", "alias": "not_null_google_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.6732428, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.google_ads__ad_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day.fe37ea1a7b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day.fe37ea1a7b", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a\") }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a"}, "created_at": 1667945773.676518, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__ad_report"}, "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('google_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__campaign_report_campaign_id"], "unique_id": "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__campaign_report_campaign_id.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__campaign_report_campaign_id", "alias": "not_null_google_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.685208, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.google_ads__campaign_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "advertising_channel_type", "advertising_channel_subtype", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a\") }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day", "alias": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a"}, "created_at": 1667945773.688481, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, advertising_channel_type, advertising_channel_subtype, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__campaign_report"}, "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "criterion_id", "model": "{{ get_where_subquery(ref('google_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "not_null_google_ads__keyword_report_criterion_id"], "unique_id": "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "not_null_google_ads__keyword_report_criterion_id.sql", "original_file_path": "models/google_ads.yml", "name": "not_null_google_ads__keyword_report_criterion_id", "alias": "not_null_google_ads__keyword_report_criterion_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__keyword_report_criterion_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.697639, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "criterion_id", "file_key_name": "models.google_ads__keyword_report"}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day.214ff3497d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "criterion_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day"], "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day.214ff3497d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97\") }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads", "path": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97.sql", "original_file_path": "models/google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day", "alias": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["google_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97"}, "created_at": 1667945773.701231, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, criterion_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads`.`google_ads__keyword_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.google_ads__keyword_report"}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.765277, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative"}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.768791, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id.973a01e410": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "creative_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id.973a01e410", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9\") }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id", "alias": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9"}, "created_at": 1667945773.772058, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, creative_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\n group by date_day, creative_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative"}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.780247, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign"}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.783474, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id.b03f3dc81d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id.b03f3dc81d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c\") }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id", "alias": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c"}, "created_at": 1667945773.786742, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\n group by date_day, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign"}, "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__creative_history_creative_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__creative_history_creative_id", "alias": "not_null_stg_linkedin_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__creative_history_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.7948291, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_linkedin_ads__creative_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__creative_history_version_tag"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__creative_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__creative_history_version_tag", "alias": "not_null_stg_linkedin_ads__creative_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__creative_history_version_tag.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.798041, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__creative_history"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["version_tag", "creative_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__creative_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc\") }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id", "alias": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc"}, "created_at": 1667945773.8016331, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n version_tag, creative_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\n group by version_tag, creative_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__creative_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_campaign_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "alias": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.809727, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_linkedin_ads__campaign_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_version_tag"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__campaign_history_version_tag", "alias": "not_null_stg_linkedin_ads__campaign_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.812981, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__campaign_history"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id.2d20780793": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["version_tag", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id.2d20780793", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361\") }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id", "alias": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361"}, "created_at": 1667945773.816254, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n version_tag, campaign_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\n group by version_tag, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__campaign_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_group_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a\") }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id", "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a"}, "created_at": 1667945773.824345, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_group_id", "file_key_name": "models.stg_linkedin_ads__campaign_group_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "last_modified_at", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd\") }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at", "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd"}, "created_at": 1667945773.827605, "compiled_code": "\n \n \n\n\n\nselect last_modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\nwhere last_modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "last_modified_at", "file_key_name": "models.stg_linkedin_ads__campaign_group_history"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id.e761ddb4da": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["last_modified_at", "campaign_group_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id.e761ddb4da", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14\") }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id", "alias": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14"}, "created_at": 1667945773.830868, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n last_modified_at, campaign_group_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__campaign_group_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_account_id"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_account_id.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__account_history_account_id", "alias": "not_null_stg_linkedin_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.839512, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_linkedin_ads__account_history"}, "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_version_tag"], "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "name": "not_null_stg_linkedin_ads__account_history_version_tag", "alias": "not_null_stg_linkedin_ads__account_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_version_tag.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.842807, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__account_history"}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag.9a655993ce": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "version_tag"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag"], "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag.9a655993ce", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55\") }}", "language": "sql", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55.sql", "original_file_path": "models/stg_linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag", "alias": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55"}, "created_at": 1667945773.846394, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, version_tag\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads_source`.`stg_linkedin_ads__account_history`\n group by account_id, version_tag\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_linkedin_ads__account_history"}, "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('facebook_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__url_report_base_url"], "unique_id": "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__url_report_base_url.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__url_report_base_url", "alias": "not_null_facebook_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_report_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.954335, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "base_url", "file_key_name": "models.facebook_ads__url_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "ad_set_id", "ad_id"], "model": "{{ get_where_subquery(ref('facebook_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb\") }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id", "alias": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb"}, "created_at": 1667945773.957621, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_set_id, ad_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__url_report"}, "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('facebook_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_report_ad_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__ad_report_ad_id.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__ad_report_ad_id", "alias": "not_null_facebook_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.967175, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.facebook_ads__ad_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "ad_set_id", "ad_id"], "model": "{{ get_where_subquery(ref('facebook_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e\") }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id", "alias": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e"}, "created_at": 1667945773.970751, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_set_id, ad_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__ad_report"}, "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_set_id", "model": "{{ get_where_subquery(ref('facebook_ads__ad_set_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_set_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_set_report_ad_set_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__ad_set_report_ad_set_id.sql", "original_file_path": "models/facebook.yml", "name": "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": ""}, "tags": [], "refs": [["facebook_ads__ad_set_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_set_report_ad_set_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.980323, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_set_id", "file_key_name": "models.facebook_ads__ad_set_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id.3dd4da872f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "ad_set_id"], "model": "{{ get_where_subquery(ref('facebook_ads__ad_set_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id.3dd4da872f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74\") }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id", "alias": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__ad_set_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74"}, "created_at": 1667945773.983596, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_set_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__ad_set_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__ad_set_report"}, "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('facebook_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__campaign_report_campaign_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__campaign_report_campaign_id.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__campaign_report_campaign_id", "alias": "not_null_facebook_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945773.993242, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.facebook_ads__campaign_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id.7cd75107e6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id"], "model": "{{ get_where_subquery(ref('facebook_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id.7cd75107e6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1\") }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id", "alias": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1"}, "created_at": 1667945773.996491, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__campaign_report"}, "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('facebook_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__account_report_account_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__account_report_account_id.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__account_report_account_id", "alias": "not_null_facebook_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.005097, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.facebook_ads__account_report"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id.5a94423e40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id"], "model": "{{ get_where_subquery(ref('facebook_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id.5a94423e40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e\") }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id", "alias": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e"}, "created_at": 1667945774.008354, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__account_report`\n group by date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__account_report"}, "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('facebook_ads__url_tags')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "not_null_facebook_ads__url_tags__fivetran_id"], "unique_id": "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "not_null_facebook_ads__url_tags__fivetran_id.sql", "original_file_path": "models/facebook.yml", "name": "not_null_facebook_ads__url_tags__fivetran_id", "alias": "not_null_facebook_ads__url_tags__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__url_tags"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_tags__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.016483, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_tags`\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.facebook_ads__url_tags"}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type.ba044777d3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_fivetran_id", "key", "type"], "model": "{{ get_where_subquery(ref('facebook_ads__url_tags')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type"], "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type.ba044777d3", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a\") }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a.sql", "original_file_path": "models/facebook.yml", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type", "alias": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["facebook_ads__url_tags"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a"}, "created_at": 1667945774.019736, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_id, key, type\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads`.`facebook_ads__url_tags`\n group by _fivetran_id, key, type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.facebook_ads__url_tags"}, "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__account_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__account_report_date_day", "alias": "not_null_snapchat_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.072476, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__account_report"}, "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_account_id", "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_ad_account_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__account_report_ad_account_id.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__account_report_ad_account_id", "alias": "not_null_snapchat_ads__account_report_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_ad_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.0757241, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_account_id", "file_key_name": "models.snapchat_ads__account_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day.da5545b8e6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_account_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day.da5545b8e6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292\") }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day", "alias": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292"}, "created_at": 1667945774.079227, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_account_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__account_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__account_report"}, "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__ad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__ad_report_date_day", "alias": "not_null_snapchat_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.087299, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__ad_report"}, "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_ad_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__ad_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__ad_report_ad_id", "alias": "not_null_snapchat_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.090554, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.snapchat_ads__ad_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day.68c2c0de57": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day.68c2c0de57", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b\") }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day", "alias": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b"}, "created_at": 1667945774.093803, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_report`\n group by ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__ad_report"}, "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__campaign_report_date_day", "alias": "not_null_snapchat_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.101845, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__campaign_report"}, "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_campaign_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_campaign_id.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__campaign_report_campaign_id", "alias": "not_null_snapchat_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.105075, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.snapchat_ads__campaign_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day.dfc5f7da4e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day.dfc5f7da4e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e\") }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e"}, "created_at": 1667945774.10831, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__campaign_report`\n group by campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__campaign_report"}, "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__ad_squad_report_date_day", "alias": "not_null_snapchat_ads__ad_squad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.116409, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__ad_squad_report"}, "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_ad_squad_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "original_file_path": "models/snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.119627, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_squad_id", "file_key_name": "models.snapchat_ads__ad_squad_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day.027a518f3c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_squad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day.027a518f3c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f\") }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day", "alias": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f"}, "created_at": 1667945774.123188, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__ad_squad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__ad_squad_report"}, "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_date_day"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__url_report_date_day.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__url_report_date_day", "alias": "not_null_snapchat_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.131296, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.snapchat_ads__url_report"}, "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_ad_id"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__url_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__url_report_ad_id", "alias": "not_null_snapchat_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.134534, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.snapchat_ads__url_report"}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day"], "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7\") }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7.sql", "original_file_path": "models/snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day", "alias": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7"}, "created_at": 1667945774.137816, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads`.`snapchat_ads__url_report`\n group by ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.snapchat_ads__url_report"}, "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_google_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_history_account_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__account_history_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__account_history_account_id", "alias": "not_null_stg_google_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.2183979, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_google_ads__account_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at.19f35742f1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at.19f35742f1", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at", "alias": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3"}, "created_at": 1667945774.221648, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_history`\n group by account_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__account_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_history_ad_group_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.229717, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_google_ads__ad_group_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at.096e8da5fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at.096e8da5fd", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at", "alias": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a"}, "created_at": 1667945774.2329879, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_history_ad_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__ad_history_ad_id", "alias": "not_null_stg_google_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.2411, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_google_ads__ad_history"}, "test.google_ads_source.dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7": {"test_metadata": {"name": "expect_column_values_to_not_match_regex_list", "kwargs": {"regex_list": ",", "match_on": "any", "column_name": "source_final_urls", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "warn", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___"], "unique_id": "test.google_ads_source.dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_not_match_regex_list(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___", "alias": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5.sql", "build_path": null, "deferred": false, "unrendered_config": {"severity": "warn", "alias": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5"}, "created_at": 1667945774.244896, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n\n \nregexp_instr(source_final_urls, ',', 1, 1)\n\n\n = 0\n as expression\n\n\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "source_final_urls", "file_key_name": "models.stg_google_ads__ad_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at", "alias": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74"}, "created_at": 1667945774.271872, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__ad_stats_date_day", "alias": "not_null_stg_google_ads__ad_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.280499, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__ad_stats"}, "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_ad_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_stats_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__ad_stats_ad_id", "alias": "not_null_stg_google_ads__ad_stats_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.283747, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_google_ads__ad_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day", "alias": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1"}, "created_at": 1667945774.287075, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_network_type, device, ad_group_id, keyword_ad_group_criterion, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_stats`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_stats"}, "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_history_campaign_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__campaign_history_campaign_id", "alias": "not_null_stg_google_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.297257, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_google_ads__campaign_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at.8bf2733e86": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at.8bf2733e86", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at", "alias": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d"}, "created_at": 1667945774.300807, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_history`\n group by campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__campaign_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "criterion_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_criterion_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_criterion_history_criterion_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__ad_group_criterion_history_criterion_id", "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_criterion_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031"}, "created_at": 1667945774.308917, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_criterion_history`\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "criterion_id", "file_key_name": "models.stg_google_ads__ad_group_criterion_history"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at.197bbc6816": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["criterion_id", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_criterion_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at.197bbc6816", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at", "alias": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_criterion_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8"}, "created_at": 1667945774.3122098, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n criterion_id, ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_criterion_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_criterion_history"}, "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.320791, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__ad_group_stats"}, "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_ad_group_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.32403, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_google_ads__ad_group_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day.ed55af6020": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "device", "ad_network_type", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day.ed55af6020", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day", "alias": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c"}, "created_at": 1667945774.3273332, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, device, ad_network_type, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__ad_group_stats`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_stats"}, "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__campaign_stats_date_day", "alias": "not_null_stg_google_ads__campaign_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.336467, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__campaign_stats"}, "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_campaign_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__campaign_stats_campaign_id", "alias": "not_null_stg_google_ads__campaign_stats_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.339709, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_google_ads__campaign_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day.69600f7d45": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "ad_network_type", "device", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day.69600f7d45", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day", "alias": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259"}, "created_at": 1667945774.3439019, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, ad_network_type, device, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__campaign_stats`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__campaign_stats"}, "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__keyword_stats_date_day", "alias": "not_null_stg_google_ads__keyword_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.352928, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__keyword_stats"}, "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_keyword_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_keyword_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__keyword_stats_keyword_id", "alias": "not_null_stg_google_ads__keyword_stats_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.356151, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_google_ads__keyword_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day.8f15198e68": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day.8f15198e68", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day", "alias": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534"}, "created_at": 1667945774.3593888, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__keyword_stats`\n group by keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__keyword_stats"}, "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_account_id"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__account_stats_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__account_stats_account_id", "alias": "not_null_stg_google_ads__account_stats_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.367421, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_google_ads__account_stats"}, "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_date_day"], "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "not_null_stg_google_ads__account_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "name": "not_null_stg_google_ads__account_stats_date_day", "alias": "not_null_stg_google_ads__account_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.370641, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_google_ads__account_stats"}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day.3019f8a860": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "device", "ad_network_type", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day"], "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day.3019f8a860", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3\") }}", "language": "sql", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3.sql", "original_file_path": "models/stg_google_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day", "alias": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3"}, "created_at": 1667945774.3742468, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, device, ad_network_type, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_google_ads_source`.`stg_google_ads__account_stats`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_google_ads__account_stats"}, "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_ad_group_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "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": ""}, "tags": [], "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.583731, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.apple_search_ads__ad_group_report"}, "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "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": ""}, "tags": [], "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.5878808, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__ad_group_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day.19d180bab9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "campaign_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day.19d180bab9", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2\") }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2"}, "created_at": 1667945774.591187, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__ad_group_report"}, "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_ad_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__ad_report_ad_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__ad_report_ad_id", "alias": "not_null_apple_search_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.600377, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.apple_search_ads__ad_report"}, "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__ad_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__ad_report_date_day", "alias": "not_null_apple_search_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.603621, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__ad_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "campaign_id", "ad_group_id", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c\") }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day", "alias": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c"}, "created_at": 1667945774.606886, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, ad_group_id, ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__ad_report"}, "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_campaign_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_campaign_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__campaign_report_campaign_id", "alias": "not_null_apple_search_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.616531, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.apple_search_ads__campaign_report"}, "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__campaign_report_date_day", "alias": "not_null_apple_search_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.620057, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__campaign_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day.647e56213f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day.647e56213f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5\") }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5"}, "created_at": 1667945774.62333, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__campaign_report"}, "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_keyword_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_keyword_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__keyword_report_keyword_id", "alias": "not_null_apple_search_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.631914, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.apple_search_ads__keyword_report"}, "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__keyword_report_date_day", "alias": "not_null_apple_search_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.635149, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__keyword_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "campaign_id", "ad_group_id", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246\") }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day", "alias": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246"}, "created_at": 1667945774.638402, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, ad_group_id, keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__keyword_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__keyword_report"}, "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_organization_id"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__organization_report_organization_id.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__organization_report_organization_id", "alias": "not_null_apple_search_ads__organization_report_organization_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_organization_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.6480472, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "organization_id", "file_key_name": "models.apple_search_ads__organization_report"}, "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__organization_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "not_null_apple_search_ads__organization_report_date_day", "alias": "not_null_apple_search_ads__organization_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.651597, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__organization_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day.8bc84fccc3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day.8bc84fccc3", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d\") }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day", "alias": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d"}, "created_at": 1667945774.6548648, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__organization_report`\n group by organization_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__organization_report"}, "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_date_day"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "name": "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": ""}, "tags": [], "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.662978, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.apple_search_ads__search_term_report"}, "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term_text", "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_search_term_text"], "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_search_term_text.sql", "original_file_path": "models/apple_search_ads.yml", "name": "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": ""}, "tags": [], "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_search_term_text.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.666256, "compiled_code": "\n \n \n\n\n\nselect search_term_text\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\nwhere search_term_text is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_term_text", "file_key_name": "models.apple_search_ads__search_term_report"}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day.e60fe79ec4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["search_term_text", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day"], "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day.e60fe79ec4", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690\") }}", "language": "sql", "package_name": "apple_search_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads", "path": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690.sql", "original_file_path": "models/apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day", "alias": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690"}, "created_at": 1667945774.669545, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n search_term_text, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads`.`apple_search_ads__search_term_report`\n group by search_term_text, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.apple_search_ads__search_term_report"}, "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('ad_reporting__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__account_report_account_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__account_report_account_id.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "not_null_ad_reporting__account_report_account_id", "alias": "not_null_ad_reporting__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.846373, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.ad_reporting__account_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id.1cadcf1583": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id.1cadcf1583", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id", "alias": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce"}, "created_at": 1667945774.849779, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__account_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__account_report"}, "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('ad_reporting__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_group_report_ad_group_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__ad_group_report_ad_group_id.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "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": ""}, "tags": [], "refs": [["ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.858596, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.ad_reporting__ad_group_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342"}, "created_at": 1667945774.861883, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__ad_group_report"}, "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('ad_reporting__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_report_ad_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__ad_report_ad_id.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "not_null_ad_reporting__ad_report_ad_id", "alias": "not_null_ad_reporting__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.871637, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.ad_reporting__ad_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "ad_id", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21"}, "created_at": 1667945774.875277, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, ad_id, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__ad_report"}, "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('ad_reporting__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__campaign_report_campaign_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__campaign_report_campaign_id.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "not_null_ad_reporting__campaign_report_campaign_id", "alias": "not_null_ad_reporting__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.88624, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.ad_reporting__campaign_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id.4b3426da0f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id.4b3426da0f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f"}, "created_at": 1667945774.889668, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__campaign_report"}, "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_text", "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__keyword_report_keyword_text"], "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__keyword_report_keyword_text.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "not_null_ad_reporting__keyword_report_keyword_text", "alias": "not_null_ad_reporting__keyword_report_keyword_text", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__keyword_report_keyword_text.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.8990269, "compiled_code": "\n \n \n\n\n\nselect keyword_text\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__keyword_report`\nwhere keyword_text is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_text", "file_key_name": "models.ad_reporting__keyword_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "keyword_text", "keyword_match_type", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1b58d2a0be6cb3ab97cee07f3247bfb"}, "created_at": 1667945774.902291, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, keyword_text, keyword_match_type, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__keyword_report`\n group by platform, date_day, keyword_text, 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__keyword_report"}, "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('ad_reporting__search_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__search_report_search_query"], "unique_id": "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__search_report_search_query.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "not_null_ad_reporting__search_report_search_query", "alias": "not_null_ad_reporting__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__search_report_search_query.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.912986, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__search_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_query", "file_key_name": "models.ad_reporting__search_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371"}, "created_at": 1667945774.916547, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, search_query, search_match_type, keyword_id, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__search_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__search_report"}, "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('ad_reporting__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__url_report_base_url"], "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__url_report_base_url.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "not_null_ad_reporting__url_report_base_url", "alias": "not_null_ad_reporting__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__url_report_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945774.927626, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "base_url", "file_key_name": "models.ad_reporting__url_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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.cd216b1424": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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"], "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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.cd216b1424", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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_996efa0d96cfeb69e01d6d9960ce6a10", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["ad_reporting__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10"}, "created_at": 1667945774.930933, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, ad_group_id, campaign_id, account_id, base_url, url_host, url_path, utm_campaign, utm_content, utm_medium, utm_source, utm_term\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_ad_reporting`.`ad_reporting__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.ad_reporting__url_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_modified_at"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.084506, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "modified_at", "file_key_name": "models.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": {"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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_ad_group_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.08779, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.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_ad_group_id__modified_at.84af14c83b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_ad_group_id__modified_at"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_ad_group_id__modified_at.84af14c83b", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_ad_group_id__modified_at", "alias": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f"}, "created_at": 1667945775.090983, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.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": {"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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_ad_group_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.099008, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_group_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.102172, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.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_ad_group_id__date_day.a0fcc4e33c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_ad_group_id__date_day"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_ad_group_id__date_day.a0fcc4e33c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d"}, "created_at": 1667945775.10571, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_group_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_modified_at"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.113358, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__ad_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_ad_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.116833, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_apple_search_ads__ad_history"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at.38599b8cba": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at.38599b8cba", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at", "alias": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31"}, "created_at": 1667945775.120028, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_history`\n group by ad_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.127958, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__ad_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_group_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.1311219, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.1343, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_apple_search_ads__ad_report"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id.0d8d23c516": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day", "ad_group_id"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id.0d8d23c516", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id", "alias": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9"}, "created_at": 1667945775.1378582, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day, ad_group_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_modified_at"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.146323, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__campaign_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_campaign_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.149507, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_apple_search_ads__campaign_history"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at.317f970af9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at.317f970af9", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at", "alias": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9"}, "created_at": 1667945775.1527119, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`\n group by campaign_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__campaign_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_campaign_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.160661, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_apple_search_ads__campaign_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.163832, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__campaign_report"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day.bad41b0481": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day.bad41b0481", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07"}, "created_at": 1667945775.167029, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\n group by campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__campaign_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_modified_at"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.175385, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__keyword_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_keyword_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.178565, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_apple_search_ads__keyword_history"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at.7b06162d24": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at.7b06162d24", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at", "alias": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5"}, "created_at": 1667945775.182066, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, modified_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`\n group by keyword_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__keyword_history"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_keyword_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.190012, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_apple_search_ads__keyword_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.193198, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__keyword_report"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day.9f0099cff8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day.9f0099cff8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day", "alias": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5"}, "created_at": 1667945775.196376, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\n group by keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__keyword_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__organization')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__organization_organization_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "not_null_stg_apple_search_ads__organization_organization_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "not_null_stg_apple_search_ads__organization_organization_id", "alias": "not_null_stg_apple_search_ads__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__organization_organization_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.204279, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "organization_id", "file_key_name": "models.stg_apple_search_ads__organization"}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id.8647048f7a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["organization_id"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__organization')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id.8647048f7a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id", "alias": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b"}, "created_at": 1667945775.207489, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__organization`\n group by organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__organization"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report__fivetran_id"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.2149382, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_apple_search_ads__search_term_report"}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report_date_day"], "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.2181098, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.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__fivetran_id__date_day.aad2a48344": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_fivetran_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report__fivetran_id__date_day"], "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report__fivetran_id__date_day.aad2a48344", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1\") }}", "language": "sql", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1.sql", "original_file_path": "models/stg_apple_search_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report__fivetran_id__date_day", "alias": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1"}, "created_at": 1667945775.2216582, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_id, date_day\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_apple_search_ads_source`.`stg_apple_search_ads__search_term_report`\n group by _fivetran_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_apple_search_ads__search_term_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_history_ad_group_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.301445, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_pinterest_ads__ad_group_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced.1132e1f339": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced.1132e1f339", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7"}, "created_at": 1667945775.304668, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__ad_group_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_history_campaign_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "alias": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.3125849, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_pinterest_ads__campaign_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced.eff7196b87": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced.eff7196b87", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b"}, "created_at": 1667945775.315777, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_history`\n group by campaign_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__campaign_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"]}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id", "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f"}, "created_at": 1667945775.323761, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_history`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "pin_promotion_id", "file_key_name": "models.stg_pinterest_ads__pin_promotion_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id.8e9ab31ea9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_fivetran_synced", "pin_promotion_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id.8e9ab31ea9", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id", "alias": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175"}, "created_at": 1667945775.326957, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_synced, pin_promotion_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_history`\n group by _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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__pin_promotion_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.3349261, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__pin_promotion_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id", "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b"}, "created_at": 1667945775.3381, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "pin_promotion_id", "file_key_name": "models.stg_pinterest_ads__pin_promotion_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id", "alias": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19"}, "created_at": 1667945775.342165, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__pin_promotion_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.351557, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__ad_group_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_ad_group_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.3547149, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_pinterest_ads__ad_group_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id", "alias": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8"}, "created_at": 1667945775.3579252, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__ad_group_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_history_advertiser_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "alias": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.366904, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.stg_pinterest_ads__advertiser_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id.94e8f4de4b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["updated_at", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id.94e8f4de4b", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id", "alias": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733"}, "created_at": 1667945775.370105, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n updated_at, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_history`\n group by updated_at, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__advertiser_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__advertiser_report_date_day", "alias": "not_null_stg_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.378096, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__advertiser_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_advertiser_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "alias": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.381578, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.stg_pinterest_ads__advertiser_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id.e92ce8a9c0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id.e92ce8a9c0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id", "alias": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de"}, "created_at": 1667945775.3847911, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__advertiser_report`\n group by date_day, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__advertiser_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__campaign_report_date_day", "alias": "not_null_stg_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.3926988, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__campaign_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_campaign_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "alias": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.3958871, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_pinterest_ads__campaign_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id.ff47cb8abc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id.ff47cb8abc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id", "alias": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf"}, "created_at": 1667945775.39908, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__campaign_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_history_keyword_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "alias": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.407528, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_pinterest_ads__keyword_history"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced.d122faa877": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "ad_group_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced.d122faa877", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628"}, "created_at": 1667945775.4107149, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, ad_group_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__keyword_history"}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_date_day"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__keyword_report_date_day", "alias": "not_null_stg_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.4191759, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__keyword_report"}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_keyword_id"], "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "alias": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.422661, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.stg_pinterest_ads__keyword_report"}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_id", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id"], "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7\") }}", "language": "sql", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7.sql", "original_file_path": "models/stg_pinterest_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id", "alias": "dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9e2909bcbf42ab2426c3540a2e7a0bb7"}, "created_at": 1667945775.425885, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, keyword_id, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_pinterest_source`.`stg_pinterest_ads__keyword_report`\n group by date_day, keyword_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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_pinterest_ads__keyword_report"}, "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__advertiser')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "unique_stg_tiktok_ads__advertiser_advertiser_id"], "unique_id": "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "unique_stg_tiktok_ads__advertiser_advertiser_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "unique_stg_tiktok_ads__advertiser_advertiser_id", "alias": "unique_stg_tiktok_ads__advertiser_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/unique_stg_tiktok_ads__advertiser_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.7480488, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select advertiser_id as unique_field\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n where advertiser_id is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.stg_tiktok_ads__advertiser"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__advertiser')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__advertiser_advertiser_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "alias": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.751408, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "advertiser_id", "file_key_name": "models.stg_tiktok_ads__advertiser"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_history_ad_group_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.7549179, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_tiktok_ads__ad_group_history"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at.cec78c01de": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at.cec78c01de", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8\") }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at", "alias": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8"}, "created_at": 1667945775.7582011, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_group_history"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_history_ad_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "not_null_stg_tiktok_ads__ad_history_ad_id", "alias": "not_null_stg_tiktok_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.766531, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_tiktok_ads__ad_history"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at.66b86b4dd1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at.66b86b4dd1", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f\") }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at", "alias": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f"}, "created_at": 1667945775.769797, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\n group by ad_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_history"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_history_campaign_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "alias": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.7779799, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_tiktok_ads__campaign_history"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at.72bf07011b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at.72bf07011b", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000\") }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at", "alias": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000"}, "created_at": 1667945775.781246, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\n group by campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__campaign_history"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_ad_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.789409, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_tiktok_ads__ad_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.792642, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__ad_report_hourly"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour.e70f8cef6d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour.e70f8cef6d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc\") }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour", "alias": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc"}, "created_at": 1667945775.7959309, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1": {"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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.8041449, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127": {"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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "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", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.8073978, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour.1aeaeb71ad": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_report_hourly')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour.1aeaeb71ad", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60\") }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour", "alias": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60"}, "created_at": 1667945775.810987, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.819148, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly"}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour"], "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.822389, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly"}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour.8e4a1e4b34": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour"], "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour.8e4a1e4b34", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16\") }}", "language": "sql", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16.sql", "original_file_path": "models/stg_tiktok_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour", "alias": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16"}, "created_at": 1667945775.8256419, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly"}, "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history_account_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__account_history_account_id", "alias": "not_null_stg_facebook_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.8885188, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_facebook_ads__account_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history__fivetran_synced"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__account_history__fivetran_synced", "alias": "not_null_stg_facebook_ads__account_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.891802, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_facebook_ads__account_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced.f9b4d28fa2": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced.f9b4d28fa2", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f\") }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f"}, "created_at": 1667945775.896003, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__account_history`\n group by account_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__account_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_ad_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__ad_history_ad_id", "alias": "not_null_stg_facebook_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.903816, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_facebook_ads__ad_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_updated_at"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__ad_history_updated_at", "alias": "not_null_stg_facebook_ads__ad_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_updated_at.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.907289, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__ad_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at.2922c18b58": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at.2922c18b58", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137\") }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at", "alias": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137"}, "created_at": 1667945775.9106162, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_history`\n group by ad_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__ad_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_set_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_ad_set_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.918806, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history`\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_set_id", "file_key_name": "models.stg_facebook_ads__ad_set_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_updated_at"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.9220412, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__ad_set_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at.0a60ad0fef": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_set_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at.0a60ad0fef", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f\") }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at", "alias": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f"}, "created_at": 1667945775.925288, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_set_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__ad_set_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__ad_set_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_campaign_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__campaign_history_campaign_id", "alias": "not_null_stg_facebook_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.933365, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_facebook_ads__campaign_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_updated_at"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__campaign_history_updated_at", "alias": "not_null_stg_facebook_ads__campaign_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_updated_at.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.936586, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__campaign_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at.7437b392c2": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at.7437b392c2", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78\") }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at", "alias": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78"}, "created_at": 1667945775.940141, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__campaign_history`\n group by campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__campaign_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history__fivetran_synced"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "alias": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.948232, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_facebook_ads__creative_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history_creative_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__creative_history_creative_id", "alias": "not_null_stg_facebook_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.9514492, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_facebook_ads__creative_history"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced.69ddc26562": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["creative_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced.69ddc26562", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217\") }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217"}, "created_at": 1667945775.954675, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__creative_history`\n group by creative_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__creative_history"}, "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_ad_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__basic_ad_ad_id", "alias": "not_null_stg_facebook_ads__basic_ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.962681, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_facebook_ads__basic_ad"}, "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_account_id"], "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "not_null_stg_facebook_ads__basic_ad_account_id", "alias": "not_null_stg_facebook_ads__basic_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945775.965919, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_facebook_ads__basic_ad"}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id.bd909529e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_id", "account_id"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id"], "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id.bd909529e7", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683\") }}", "language": "sql", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683.sql", "original_file_path": "models/stg_facebook_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id", "alias": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683"}, "created_at": 1667945775.969174, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_facebook_ads__basic_ad"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.240203, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_account_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_account_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history_ad_account_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.2435331, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_account_id", "file_key_name": "models.stg_snapchat_ads__ad_account_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced.cd4fd6b0be": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_account_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced.cd4fd6b0be", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d"}, "created_at": 1667945776.246795, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_account_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_account_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "alias": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.25497, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history_ad_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__ad_history_ad_id", "alias": "not_null_stg_snapchat_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.2581608, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_snapchat_ads__ad_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced.f84924f13b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced.f84924f13b", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060"}, "created_at": 1667945776.261394, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\n group by ad_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_ad_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.2697952, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.stg_snapchat_ads__ad_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_date_hour"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.2733781, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__ad_hourly_report"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour.1a4ef6182a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour.1a4ef6182a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour", "alias": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea"}, "created_at": 1667945776.276631, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\n group by ad_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.284714, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_squad_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.287957, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_squad_id", "file_key_name": "models.stg_snapchat_ads__ad_squad_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced.200b225a27": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_squad_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced.200b225a27", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128"}, "created_at": 1667945776.291211, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_squad_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9": {"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}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.299265, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_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": [], "relation_name": null, "column_name": "ad_squad_id", "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.3024662, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour.774a407e69": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_squad_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour.774a407e69", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour", "alias": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3"}, "created_at": 1667945776.306047, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, date_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "alias": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.314107, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__campaign_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history_campaign_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "alias": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.317343, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_snapchat_ads__campaign_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced.31b9fb6777": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced.31b9fb6777", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b"}, "created_at": 1667945776.320589, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\n group by campaign_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__campaign_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.328637, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.331889, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour.64293afa9c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour.64293afa9c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour", "alias": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2"}, "created_at": 1667945776.33512, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_hour\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\n group by campaign_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history__fivetran_synced"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "alias": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.343213, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__creative_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history_creative_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "not_null_stg_snapchat_ads__creative_history_creative_id", "alias": "not_null_stg_snapchat_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.346743, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_snapchat_ads__creative_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced.c6f6c78b99": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["creative_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced.c6f6c78b99", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced", "alias": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d"}, "created_at": 1667945776.34999, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_history`\n group by creative_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__creative_history"}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_url_tag_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id"], "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "name": "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": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.358007, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.stg_snapchat_ads__creative_url_tag_history"}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at.cc3fa6acbe": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["creative_id", "param_key", "updated_at"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_url_tag_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at"], "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at.cc3fa6acbe", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985\") }}", "language": "sql", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985.sql", "original_file_path": "models/stg_snapchat.yml", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at", "alias": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985"}, "created_at": 1667945776.3612642, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, param_key, updated_at\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_snapchat_ads__creative_url_tag_history"}, "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('microsoft_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__account_report_account_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__account_report_account_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__account_report_account_id", "alias": "not_null_microsoft_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.450934, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.microsoft_ads__account_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code", "alias": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668"}, "created_at": 1667945776.454185, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__account_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__account_report"}, "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('microsoft_ads__ad_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_group_report_ad_group_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "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": ""}, "tags": [], "refs": [["microsoft_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.464191, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.microsoft_ads__ad_group_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code", "alias": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6"}, "created_at": 1667945776.467785, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__ad_group_report"}, "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('microsoft_ads__ad_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_report_ad_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__ad_report_ad_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__ad_report_ad_id", "alias": "not_null_microsoft_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.478913, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_id", "file_key_name": "models.microsoft_ads__ad_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_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_77fd1448acda33bd9d2c0555648d2822", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822"}, "created_at": 1667945776.4821918, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, ad_type, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__ad_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__ad_report"}, "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('microsoft_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__campaign_report_campaign_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__campaign_report_campaign_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__campaign_report_campaign_id", "alias": "not_null_microsoft_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.494661, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.microsoft_ads__campaign_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code", "alias": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a"}, "created_at": 1667945776.497931, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__campaign_report"}, "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('microsoft_ads__keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__keyword_report_keyword_id"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__keyword_report_keyword_id.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__keyword_report_keyword_id", "alias": "not_null_microsoft_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.508524, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "keyword_id", "file_key_name": "models.microsoft_ads__keyword_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_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_44d9a6d860076a5eefdaf319891f3854", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854"}, "created_at": 1667945776.511821, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__keyword_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__keyword_report"}, "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__search_report_search_query"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__search_report_search_query.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__search_report_search_query", "alias": "not_null_microsoft_ads__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__search_report_search_query.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.5242932, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_query", "file_key_name": "models.microsoft_ads__search_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "search_query", "device_os", "device_type", "network"], "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network", "alias": "dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9ae81dd8de8ada9477b5f15322a78a95"}, "created_at": 1667945776.527732, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__search_report`\n group by date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__search_report"}, "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('microsoft_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "not_null_microsoft_ads__url_report_base_url"], "unique_id": "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "not_null_microsoft_ads__url_report_base_url.sql", "original_file_path": "models/microsoft_ads.yml", "name": "not_null_microsoft_ads__url_report_base_url", "alias": "not_null_microsoft_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__url_report_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.540118, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "base_url", "file_key_name": "models.microsoft_ads__url_report"}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["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"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code"], "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432.sql", "original_file_path": "models/microsoft_ads.yml", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code", "alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["microsoft_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432"}, "created_at": 1667945776.5443342, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_microsoft_ads`.`microsoft_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.microsoft_ads__url_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__account_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__account_history_account_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__account_history_account_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__account_history_account_id", "alias": "not_null_stg_twitter_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__account_history_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.7281191, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_twitter_ads__account_history"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp.2725b1ff40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__account_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp.2725b1ff40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp", "alias": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0"}, "created_at": 1667945776.7314932, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__account_history`\n group by account_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__account_history"}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_history_campaign_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__campaign_history_campaign_id", "alias": "not_null_stg_twitter_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.739763, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_twitter_ads__campaign_history"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp.c7054e5b55": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp.c7054e5b55", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp", "alias": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2"}, "created_at": 1667945776.743304, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_history`\n group by campaign_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__campaign_history"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_history_line_item_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.751023, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_history"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp.b12672e022": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["line_item_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp.b12672e022", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp", "alias": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3"}, "created_at": 1667945776.75454, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n line_item_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_history"}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"]}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id", "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976"}, "created_at": 1667945776.762582, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "promoted_tweet_id", "file_key_name": "models.stg_twitter_ads__promoted_tweet_history"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp.dddc4a21ef": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["promoted_tweet_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_history')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp.dddc4a21ef", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp", "alias": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca"}, "created_at": 1667945776.7658281, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n promoted_tweet_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__promoted_tweet_history"}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_date_day"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.7738209, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id", "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa"}, "created_at": 1667945776.777011, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "promoted_tweet_id", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_placement"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "alias": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.780206, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement.7028206273": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "promoted_tweet_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement.7028206273", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement", "alias": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9"}, "created_at": 1667945776.7833989, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, promoted_tweet_id, placement\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__promoted_tweet_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_index"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_index.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__tweet_url_index", "alias": "not_null_stg_twitter_ads__tweet_url_index", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_index.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.791873, "compiled_code": "\n \n \n\n\n\nselect index\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "index", "file_key_name": "models.stg_twitter_ads__tweet_url"}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_tweet_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__tweet_url_tweet_id", "alias": "not_null_stg_twitter_ads__tweet_url_tweet_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.795359, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet_url"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id.eab5b85d74": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["index", "tweet_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id.eab5b85d74", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id", "alias": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540"}, "created_at": 1667945776.798571, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, tweet_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet_url`\n group by index, tweet_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__tweet_url"}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_date_day"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__campaign_report_date_day", "alias": "not_null_stg_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.806497, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__campaign_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_campaign_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__campaign_report_campaign_id", "alias": "not_null_stg_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.809689, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.stg_twitter_ads__campaign_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_placement"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__campaign_report_placement", "alias": "not_null_stg_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.812877, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__campaign_report"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement.71102d8fdb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement.71102d8fdb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement", "alias": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0"}, "created_at": 1667945776.816427, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, placement\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__campaign_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_date_day"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.824617, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__line_item_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_line_item_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.8285701, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_placement"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_report_placement", "alias": "not_null_stg_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_placement.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.83175, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__line_item_report"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement.251e077e6b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "line_item_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "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"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement.251e077e6b", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement", "alias": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb"}, "created_at": 1667945776.834938, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, line_item_id, placement\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__line_item_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_date_day"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "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": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.843833, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_line_item_id.e4f3fa2e5c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": "not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_line_item_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_line_item_id.e4f3fa2e5c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_keywords_report_line_item_id", "alias": "not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_twitter_ads__line_da56af10c290b71b2ed3fe91bb6e626c"}, "created_at": 1667945776.8470569, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword.02bb211fa0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_keyword"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword.02bb211fa0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_keyword.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_keywords_report_keyword", "alias": "not_null_stg_twitter_ads__line_item_keywords_report_keyword", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.850656, "column_name": "keyword", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_placement.f5bb738cac": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_placement"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_placement.f5bb738cac", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_keywords_report_placement", "alias": "not_null_stg_twitter_ads__line_item_keywords_report_placement", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.8538308, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement.c47c820cc3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "line_item_id", "keyword", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement.c47c820cc3", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement", "alias": "dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ee7bc3b252634b2879df7977692fb089"}, "created_at": 1667945776.8570318, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_keywords_report"}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_tweet_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__tweet_tweet_id", "alias": "not_null_stg_twitter_ads__tweet_tweet_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.8662112, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet"}, "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["twitter_ads_source", "unique_stg_twitter_ads__tweet_tweet_id"], "unique_id": "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "unique_stg_twitter_ads__tweet_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "unique_stg_twitter_ads__tweet_tweet_id", "alias": "unique_stg_twitter_ads__tweet_tweet_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_twitter_ads__tweet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/unique_stg_twitter_ads__tweet_tweet_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.8693829, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select tweet_id as unique_field\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_twitter_ads_source`.`stg_twitter_ads__tweet`\n where tweet_id is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet"}, "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_account_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__account_report_account_id.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__account_report_account_id", "alias": "not_null_linkedin_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.942528, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.linkedin_ads__account_report"}, "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__account_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__account_report_date_day", "alias": "not_null_linkedin_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.9458282, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__account_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id.a2dcede91c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id.a2dcede91c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231\") }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id", "alias": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231"}, "created_at": 1667945776.949344, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__account_report`\n group by date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__account_report"}, "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__campaign_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__campaign_report_date_day", "alias": "not_null_linkedin_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.9576519, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__campaign_report"}, "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_campaign_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__campaign_report_campaign_id.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__campaign_report_campaign_id", "alias": "not_null_linkedin_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.961432, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_id", "file_key_name": "models.linkedin_ads__campaign_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id", "account_id", "campaign_group_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873\") }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id", "alias": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873"}, "created_at": 1667945776.964768, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, account_id, campaign_group_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__campaign_report"}, "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__campaign_group_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__campaign_group_report_date_day", "alias": "not_null_linkedin_ads__campaign_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.975852, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__campaign_group_report"}, "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_group_id", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_campaign_group_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "original_file_path": "models/linkedin.yml", "name": "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": ""}, "tags": [], "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.979297, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "campaign_group_id", "file_key_name": "models.linkedin_ads__campaign_group_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id.f60989a7a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id.f60989a7a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e\") }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id", "alias": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e"}, "created_at": 1667945776.982697, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__campaign_group_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__campaign_group_report"}, "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__creative_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__creative_report_date_day", "alias": "not_null_linkedin_ads__creative_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.9918919, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__creative_report"}, "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_creative_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__creative_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__creative_report_creative_id", "alias": "not_null_linkedin_ads__creative_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945776.995532, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.linkedin_ads__creative_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "creative_id", "campaign_id", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92\") }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id", "alias": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92"}, "created_at": 1667945776.998854, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, creative_id, campaign_id, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__creative_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__creative_report"}, "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_date_day"], "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__url_report_date_day.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__url_report_date_day", "alias": "not_null_linkedin_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_date_day.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945777.010035, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "date_day", "file_key_name": "models.linkedin_ads__url_report"}, "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_creative_id"], "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__url_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__url_report_creative_id", "alias": "not_null_linkedin_ads__url_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_creative_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1667945777.013846, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "creative_id", "file_key_name": "models.linkedin_ads__url_report"}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "creative_id", "campaign_id", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_dbt_test__audit", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id"], "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f\") }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f.sql", "original_file_path": "models/linkedin.yml", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id", "alias": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f"}, "created_at": 1667945777.017389, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, creative_id, campaign_id, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_integration_tests_v1_linkedin_ads`.`linkedin_ads__url_report`\n group by 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": [], "relation_name": null, "column_name": null, "file_key_name": "models.linkedin_ads__url_report"}}, "sources": {"source.microsoft_ads_source.microsoft_ads.account_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "account_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_history_data`", "created_at": 1667945777.0292962}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "account_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "account_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_account_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_account_performance_daily_report_data`", "created_at": 1667945777.029614}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "ad_group_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The date in which an ad group starts running.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The date in which this ad group will no longer run.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_history_data`", "created_at": 1667945777.029873}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "ad_group_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_group_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_group_performance_daily_report_data`", "created_at": 1667945777.030151}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "ad_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "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, "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The full URL that the ad links to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_history_data`", "created_at": 1667945777.030397}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "ad_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_ad_performance_daily_report_data`", "created_at": 1667945777.0306711}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "campaign_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_history_data`", "created_at": 1667945777.0309188}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "campaign_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_campaign_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_campaign_performance_daily_report_data`", "created_at": 1667945777.031187}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "keyword_history", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_keyword_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_history_data`", "created_at": 1667945777.031432}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "keyword_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_keyword_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_keyword_performance_daily_report_data`", "created_at": 1667945777.031712}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "search_query_performance_daily_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "name": "search_query_performance_daily_report", "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_search_performance_daily_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`microsoft_ads_search_performance_daily_report_data`", "created_at": 1667945777.0319932}, "source.linkedin_source.linkedin.ad_analytics_by_creative": {"fqn": ["linkedin_source", "linkedin", "ad_analytics_by_creative"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_creative", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "ad_analytics_by_creative", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_analytics_by_creative_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "day": {"name": "day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cost_in_usd": {"name": "cost_in_usd", "description": "The cost of the ads in the USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_creative_data`", "created_at": 1667945777.032243}, "source.linkedin_source.linkedin.creative_history": {"fqn": ["linkedin_source", "linkedin", "creative_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.creative_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "creative_history", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_creative_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign the creative belongs to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text with Sponsored Link to landing page on your site.\nSPONSORED_STATUS_UPDATE - Sponsored status update from a profile page.\nSPONSORED_INMAILS - Single message ad delivered to the member's inbox\nSPONSORED_MESSAGE - Conversation ad containing a tree of pre-determined messages delivered to the member's inbox\nSPONSORED_VIDEO - Sponsored videos.\nSPONSORED_UPDATE_CAROUSEL - Sponsored Carousels\nFOLLOW_COMPANY_V2 - Dynamic Follow Ad\nSPOTLIGHT_V2 - Dynamic Spotlight Ad\nJOBS_V2 - Dynamic Job Ad\n", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "call_to_action_label_type": {"name": "call_to_action_label_type", "description": "The labeled call-to-action on this ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_creative_history_data`", "created_at": 1667945777.0324962}, "source.linkedin_source.linkedin.campaign_history": {"fqn": ["linkedin_source", "linkedin", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.campaign_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "campaign_history", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign belongs to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_history_data`", "created_at": 1667945777.0327969}, "source.linkedin_source.linkedin.campaign_group_history": {"fqn": ["linkedin_source", "linkedin", "campaign_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.campaign_group_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "campaign_group_history", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_campaign_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign group belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_campaign_group_history_data`", "created_at": 1667945777.033537}, "source.linkedin_source.linkedin.account_history": {"fqn": ["linkedin_source", "linkedin", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.account_history", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "account_history", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the account.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_account_history_data`", "created_at": 1667945777.033823}, "source.linkedin_source.linkedin.ad_analytics_by_campaign": {"fqn": ["linkedin_source", "linkedin", "ad_analytics_by_campaign"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_campaign", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "name": "ad_analytics_by_campaign", "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_analytics_by_campaign_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "day": {"name": "day", "description": "The day of the activity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cost_in_usd": {"name": "cost_in_usd", "description": "The cost of the ads in the USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`linkedin_ad_analytics_by_campaign_data`", "created_at": 1667945777.034095}, "source.google_ads_source.google_ads.ad_stats": {"fqn": ["google_ads_source", "google_ads", "ad_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group": {"name": "ad_group", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_stats_data`", "created_at": 1667945777.034366}, "source.google_ads_source.google_ads.ad_history": {"fqn": ["google_ads_source", "google_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The display url of the ad that is being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the ad in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "final_urls": {"name": "final_urls", "description": "A list of urls that are used for the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_history_data`", "created_at": 1667945777.034612}, "source.google_ads_source.google_ads.ad_group_history": {"fqn": ["google_ads_source", "google_ads", "ad_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_group_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_group_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the ad group in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_history_data`", "created_at": 1667945777.034857}, "source.google_ads_source.google_ads.campaign_history": {"fqn": ["google_ads_source", "google_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.campaign_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "campaign_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "Status of the ads and how they are currently being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "General status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_history_data`", "created_at": 1667945777.0351171}, "source.google_ads_source.google_ads.account_history": {"fqn": ["google_ads_source", "google_ads", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.account_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "account_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency of the spend reported.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone of the account ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "descriptive_name": {"name": "descriptive_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_history_data`", "created_at": 1667945777.0353549}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"fqn": ["google_ads_source", "google_ads", "ad_group_criterion_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_group_criterion_history", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_criterion_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_campaign_id": {"name": "base_campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of ad group criterion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group criterion.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_criterion_history_data`", "created_at": 1667945777.0356019}, "source.google_ads_source.google_ads.ad_group_stats": {"fqn": ["google_ads_source", "google_ads", "ad_group_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.ad_group_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "ad_group_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_ad_group_stats_data`", "created_at": 1667945777.035847}, "source.google_ads_source.google_ads.campaign_stats": {"fqn": ["google_ads_source", "google_ads", "campaign_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.campaign_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "campaign_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_campaign_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_campaign_stats_data`", "created_at": 1667945777.036083}, "source.google_ads_source.google_ads.keyword_stats": {"fqn": ["google_ads_source", "google_ads", "keyword_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.keyword_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "keyword_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_keyword_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique ID of the keyword record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_keyword_stats_data`", "created_at": 1667945777.036331}, "source.google_ads_source.google_ads.account_stats": {"fqn": ["google_ads_source", "google_ads", "account_stats"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.google_ads_source.google_ads.account_stats", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "name": "account_stats", "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_account_stats_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`google_ads_account_stats_data`", "created_at": 1667945777.0365708}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "ad_group_history", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The designated ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad group name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_history_data`", "created_at": 1667945777.036818}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "ad_group_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_group_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_group_report_data`", "created_at": 1667945777.0370612}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "ad_history", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "modification_time": {"name": "modification_time", "description": "Timestamp of when the ad object was last modified.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "org_id": {"name": "org_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad name associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_history_data`", "created_at": 1667945777.037303}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_level_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "ad_level_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_ad_report_data`", "created_at": 1667945777.037552}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "campaign_history", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Campaign name for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the campaign, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_history_data`", "created_at": 1667945777.0377972}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "campaign_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_campaign_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_campaign_report_data`", "created_at": 1667945777.038038}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "keyword_history", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_keyword_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the keyword, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "text": {"name": "text", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_history_data`", "created_at": 1667945777.038362}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "keyword_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_keyword_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_keyword_report_data`", "created_at": 1667945777.038603}, "source.apple_search_ads_source.apple_search_ads.organization": {"fqn": ["apple_search_ads_source", "apple_search_ads", "organization"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.organization", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "organization", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_organization_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Specified currency for respective organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_model": {"name": "payment_model", "description": "Values include 'LOC', 'PAYG' or (payment method hasn't been set).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "Organization default timezone; values can be ORTZ or UTC.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_organization_data`", "created_at": 1667945777.038838}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "search_term_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "name": "search_term_report", "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_search_term_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "The word or phrase to match of user searches.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": "True and True"}, "patch_path": null, "unrendered_config": {"enabled": "True and True"}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`apple_search_search_term_report_data`", "created_at": 1667945777.03911}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "pin_promotion_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_pin_promotion_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_report_data`", "created_at": 1667945777.0393689}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "pin_promotion_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_pin_promotion_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Pin creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_id": {"name": "pin_id", "description": "Original pin ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_pin_promotion_history_data`", "created_at": 1667945777.0396202}, "source.pinterest_source.pinterest_ads.campaign_history": {"fqn": ["pinterest_source", "pinterest_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.campaign_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "campaign_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Campaign creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Campaign name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Campaign. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_history_data`", "created_at": 1667945777.039855}, "source.pinterest_source.pinterest_ads.ad_group_history": {"fqn": ["pinterest_source", "pinterest_ads", "ad_group_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "ad_group_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_ad_group_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Ad group creation time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad group name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Ad group. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_history_data`", "created_at": 1667945777.040098}, "source.pinterest_source.pinterest_ads.ad_group_report": {"fqn": ["pinterest_source", "pinterest_ads", "ad_group_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "ad_group_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_ad_group_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_ad_group_report_data`", "created_at": 1667945777.04035}, "source.pinterest_source.pinterest_ads.advertiser_history": {"fqn": ["pinterest_source", "pinterest_ads", "advertiser_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "advertiser_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_advertiser_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_profile_status": {"name": "billing_profile_status", "description": "Status of the billing profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_type": {"name": "billing_type", "description": "The billing type of the advertiser. Will typically be CREDIT_CARD or INVOICE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency code which the a", "meta": {}, "data_type": null, "quote": null, "tags": []}, "merchant_id": {"name": "merchant_id", "description": "Unique ID of the merchant associated with the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_user_id": {"name": "owner_user_id", "description": "Unique identifier of the owner user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "Timestamp of when a record was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_history_data`", "created_at": 1667945777.0406048}, "source.pinterest_source.pinterest_ads.advertiser_report": {"fqn": ["pinterest_source", "pinterest_ads", "advertiser_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "advertiser_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_advertiser_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_advertiser_report_data`", "created_at": 1667945777.0408478}, "source.pinterest_source.pinterest_ads.campaign_report": {"fqn": ["pinterest_source", "pinterest_ads", "campaign_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.campaign_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "campaign_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_campaign_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_campaign_report_data`", "created_at": 1667945777.041095}, "source.pinterest_source.pinterest_ads.keyword_history": {"fqn": ["pinterest_source", "pinterest_ads", "keyword_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.keyword_history", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "keyword_history", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_keyword_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "value": {"name": "value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique identifier of the record within the Fivetran synced table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "archived": {"name": "archived", "description": "Boolean indicating if the keyword is archived.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid amount set for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_history_data`", "created_at": 1667945777.041344}, "source.pinterest_source.pinterest_ads.keyword_report": {"fqn": ["pinterest_source", "pinterest_ads", "keyword_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.pinterest_source.pinterest_ads.keyword_report", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "name": "keyword_report", "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ads_keyword_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`pinterest_ads_keyword_report_data`", "created_at": 1667945777.041601}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"fqn": ["tiktok_ads_source", "tiktok_ads", "advertiser"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "advertiser", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_advertiser_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "address": {"name": "address", "description": "Advertiser address information", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Account available balance", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company": {"name": "company", "description": "Advertiser's company name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contacter": {"name": "contacter", "description": "Contact Person", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The advertiser's country", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Advertiser's create time", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Type of currency used by advertisers", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Brand description, i.e. promotional content", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Advertiser contact email, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Advertiser industry category", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language": {"name": "language", "description": "Language used by advertisers", "meta": {}, "data_type": null, "quote": null, "tags": []}, "license_no": {"name": "license_no", "description": "License number", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Advertiser name", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Contact mobile number, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "promotion_area": {"name": "promotion_area", "description": "Operation area", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reason": {"name": "reason", "description": "Reason for rejection", "meta": {}, "data_type": null, "quote": null, "tags": []}, "role": {"name": "role", "description": "Advertiser role", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Advertiser status", "meta": {}, "data_type": null, "quote": null, "tags": []}, "telephone": {"name": "telephone", "description": "Fixed phone number, desensitised data", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Ad account time zone including GMT offset", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_advertiser_data`", "created_at": 1667945777.041947}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "campaign_history", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Campaign budget", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_mode": {"name": "budget_mode", "description": "Budget type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Time at which the campaign was created.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Advertising objective.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Campaign status", "meta": {}, "data_type": null, "quote": null, "tags": []}, "split_test_variable": {"name": "split_test_variable", "description": "Split Test variables. Optional values; TARGETING, BIDDING_OPTIMIZATION , CREATIVE.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_history_data`", "created_at": 1667945777.042207}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "adgroup_history", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_adgroup_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The Ad group's campaign ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "adgroup_name": {"name": "adgroup_name", "description": "Ad group name. Character limit is 512 and cannot contain emoji.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "android_osv": {"name": "android_osv", "description": "Minimum Android version.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_download_url": {"name": "app_download_url", "description": "App download link", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The Application id of the promoted app", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "App name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_type": {"name": "app_type", "description": "App type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience": {"name": "audience", "description": "A list of audience IDs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid": {"name": "bid", "description": "CPC, CPM bidding, oCPM learning bidding", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "Bidding Strategy", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_event": {"name": "billing_event", "description": "Bid method.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "carriers": {"name": "carriers", "description": "Carriers that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "connection_type": {"name": "connection_type", "description": "Device connection types that you want to target. Default; unlimited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "conversion_bid": {"name": "conversion_bid", "description": "oCPM conversion bid", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "creative_material_mode": {"name": "creative_material_mode", "description": "Creative delivery mode.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "deep_bid_type": {"name": "deep_bid_type", "description": "Bidding strategy for in-app events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deep_cpabid": {"name": "deep_cpabid", "description": "Deep bid", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deep_external_action": {"name": "deep_external_action", "description": "Deep conversion event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Display name of ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "enable_inventory_filter": {"name": "enable_inventory_filter", "description": "Inventory filtering (Unsafe videos will not be displayed).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "excluded_audience": {"name": "excluded_audience", "description": "A list of audience ID to be excluded.", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "ios_osv": {"name": "ios_osv", "description": "Minimum iOS version.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keywords": {"name": "keywords", "description": "Keywords used.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "IDs of the locations that you want to target.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "open_url_type": {"name": "open_url_type", "description": "The open URL type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "operation_system": {"name": "operation_system", "description": "Device operating systems that you want to target.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimize_goal": {"name": "optimize_goal", "description": "Optimization goal.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "package": {"name": "package", "description": "Package name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pangle_block_app_list_id": {"name": "pangle_block_app_list_id", "description": "Pangle app block list ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pixel_id": {"name": "pixel_id", "description": "Pixel ID. Only application for landing pages.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "placement": {"name": "placement", "description": "The apps where you want to deliver your ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "placement_type": {"name": "placement_type", "description": "Placement type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_image": {"name": "profile_image", "description": "Avatar URL.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "skip_learning_phase": {"name": "skip_learning_phase", "description": "Whether to skip the learning stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "statistic_type": {"name": "statistic_type", "description": "conversion bid statistic type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Ad group status", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_actions": {"name": "video_actions", "description": "Number of video actions.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_history_data`", "created_at": 1667945777.042602}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "ad_history", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adgroup_id": {"name": "adgroup_id", "description": "Ad group ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad Name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_text": {"name": "ad_text", "description": "The ad text.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "The display name of app download ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_to_action": {"name": "call_to_action", "description": "Call to action values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Time at which the ad was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The display name of landing page or pure exposure ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "image_ids": {"name": "image_ids", "description": "A list of image IDs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_aco": {"name": "is_aco", "description": "Whether the ad is an automated ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "playable_url": {"name": "playable_url", "description": "Playable material url.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_image": {"name": "profile_image", "description": "Avatar URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Ad status.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_id": {"name": "video_id", "description": "The video ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_history_data`", "created_at": 1667945777.042891}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "ad_report_hourly"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "ad_report_hourly", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_ad_report_hourly_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_ad_report_hourly_data`", "created_at": 1667945777.0432131}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_report_hourly"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "campaign_report_hourly", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_campaign_report_hourly_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_campaign_report_hourly_data`", "created_at": 1667945777.043535}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_report_hourly"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "name": "adgroup_report_hourly", "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_adgroup_report_hourly_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`tiktok_adgroup_report_hourly_data`", "created_at": 1667945777.043913}, "source.facebook_ads_source.facebook_ads.account_history": {"fqn": ["facebook_ads_source", "facebook_ads", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.account_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "account_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The time account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_account_history_data`", "created_at": 1667945777.0441751}, "source.facebook_ads_source.facebook_ads.ad_history": {"fqn": ["facebook_ads_source", "facebook_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.ad_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "ad_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "ID of the ad set that contains the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_history_data`", "created_at": 1667945777.04442}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"fqn": ["facebook_ads_source", "facebook_ads", "ad_set_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "ad_set_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_ad_set_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_ad_set_history_data`", "created_at": 1667945777.0446699}, "source.facebook_ads_source.facebook_ads.basic_ad": {"fqn": ["facebook_ads_source", "facebook_ads", "basic_ad"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "basic_ad", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_basic_ad_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad the report relates to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adset_name": {"name": "adset_name", "description": "Name of the ad set the report relates to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_basic_ad_data`", "created_at": 1667945777.044917}, "source.facebook_ads_source.facebook_ads.campaign_history": {"fqn": ["facebook_ads_source", "facebook_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "campaign_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this campaign belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The time the campaign was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stop_time": {"name": "stop_time", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_campaign_history_data`", "created_at": 1667945777.0451689}, "source.facebook_ads_source.facebook_ads.creative_history": {"fqn": ["facebook_ads_source", "facebook_ads", "creative_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.facebook_ads_source.facebook_ads.creative_history", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "name": "creative_history", "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_creative_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "page_link": {"name": "page_link", "description": "URL destination of Facebook ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "template_page_link": {"name": "template_page_link", "description": "URL destination of Facebook dynamic ads.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique ID for an ad creative.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Ad account ID for the account this ad creative belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of this ad creative as seen in the ad account's library.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`facebook_ads_creative_history_data`", "created_at": 1667945777.045441}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_account_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertiser": {"name": "advertiser", "description": "Name of advertiser", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency used by account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Account timezone", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_account_history_data`", "created_at": 1667945777.0456839}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the related ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_history_data`", "created_at": 1667945777.045921}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_hourly_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_hourly_report", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_hourly_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_hourly_report_data`", "created_at": 1667945777.046193}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_squad_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_squad_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_history_data`", "created_at": 1667945777.046428}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_hourly_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "ad_squad_hourly_report", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_squad_hourly_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_ad_squad_hourly_report_data`", "created_at": 1667945777.046727}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "campaign_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_history_data`", "created_at": 1667945777.047019}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_hourly_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "campaign_hourly_report", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_campaign_hourly_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "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, "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, "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, "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, "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, "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "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, "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, "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, "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, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_campaign_hourly_report_data`", "created_at": 1667945777.0472991}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "creative_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "creative_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_creative_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the creative in Snapchat.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_history_data`", "created_at": 1667945777.047553}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "creative_url_tag_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "name": "creative_url_tag_history", "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_creative_url_tag_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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, "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "key": {"name": "key", "description": "The URL parameter key, i.e. UTM_SOURCE.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The URL parameter value, i.e. Snapchat.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`snapchat_creative_url_tag_history_data`", "created_at": 1667945777.047791}, "source.twitter_ads_source.twitter_ads.account_history": {"fqn": ["twitter_ads_source", "twitter_ads", "account_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.account_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "account_history", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_account_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone_switch_at": {"name": "timezone_switch_at", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salt": {"name": "salt", "description": "The random encryption key used to has data.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_account_history_data`", "created_at": 1667945777.0480618}, "source.twitter_ads_source.twitter_ads.campaign_history": {"fqn": ["twitter_ads_source", "twitter_ads", "campaign_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "campaign_history", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_campaign_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currently all metrics for the account are set to.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The time the campaign will end", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "servable": {"name": "servable", "description": "Whether the campaign is in a state to be actively served to users.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "standard_delivery": {"name": "standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_history_data`", "created_at": 1667945777.048337}, "source.twitter_ads_source.twitter_ads.line_item_history": {"fqn": ["twitter_ads_source", "twitter_ads", "line_item_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "line_item_history", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_history_data`", "created_at": 1667945777.048647}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_history"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "promoted_tweet_history", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_promoted_tweet_history_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_history_data`", "created_at": 1667945777.0489001}, "source.twitter_ads_source.twitter_ads.tweet_url": {"fqn": ["twitter_ads_source", "twitter_ads", "tweet_url"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "tweet_url", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_tweet_url_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "The 't.co' shortened URL.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_url_data`", "created_at": 1667945777.049139}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "promoted_tweet_report", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_promoted_tweet_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the related promoted tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the promoted tweet on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_promoted_tweet_report_data`", "created_at": 1667945777.049391}, "source.twitter_ads_source.twitter_ads.tweet": {"fqn": ["twitter_ads_source", "twitter_ads", "tweet"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.tweet", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "tweet", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_tweet_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "If provided, the non-public title of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "Full text of the tweet's content.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lang": {"name": "lang", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_tweet_data`", "created_at": 1667945777.0496378}, "source.twitter_ads_source.twitter_ads.campaign_report": {"fqn": ["twitter_ads_source", "twitter_ads", "campaign_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "campaign_report", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_campaign_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the ad campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the campaign on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_campaign_report_data`", "created_at": 1667945777.049889}, "source.twitter_ads_source.twitter_ads.line_item_report": {"fqn": ["twitter_ads_source", "twitter_ads", "line_item_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "line_item_report", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item on that day.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_report_data`", "created_at": 1667945777.050136}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"unique_id": "macro.dbt_bigquery.date_sharded_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.2550359, "supported_languages": null}, "macro.dbt_bigquery.grant_access_to": {"unique_id": "macro.dbt_bigquery.grant_access_to", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.255709, "supported_languages": null}, "macro.dbt_bigquery.get_partitions_metadata": {"unique_id": "macro.dbt_bigquery.get_partitions_metadata", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.2565749, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_catalog": {"unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- else -%}\n\n {%- set query -%}\n with tables as (\n select\n project_id as table_database,\n dataset_id as table_schema,\n table_id as original_table_name,\n\n concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n row_count,\n size_bytes as size_bytes,\n case\n when type = 1 then 'table'\n when type = 2 then 'view'\n else 'external'\n end as table_type,\n\n REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n where (\n {%- for schema in schemas -%}\n upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n\n extracted as (\n\n select *,\n case\n when is_date_shard then shard_base_name\n else original_table_name\n end as table_name\n\n from tables\n\n ),\n\n unsharded_tables as (\n\n select\n table_database,\n table_schema,\n table_name,\n coalesce(table_type, 'external') as table_type,\n is_date_shard,\n\n struct(\n min(shard_name) as shard_min,\n max(shard_name) as shard_max,\n count(*) as shard_count\n ) as table_shards,\n\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count,\n\n max(relation_id) as relation_id\n\n from extracted\n group by 1,2,3,4,5\n\n ),\n\n info_schema_columns as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n table_catalog as table_database,\n table_schema,\n table_name,\n\n -- use the \"real\" column name from the paths query below\n column_name as base_column_name,\n ordinal_position as column_index,\n\n is_partitioning_column,\n clustering_ordinal_position\n\n from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n where ordinal_position is not null\n\n ),\n\n info_schema_column_paths as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n field_path as column_name,\n data_type as column_type,\n column_name as base_column_name,\n description as column_comment\n\n from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n ),\n\n columns as (\n\n select * except (base_column_name)\n from info_schema_columns\n join info_schema_column_paths using (relation_id, base_column_name)\n\n ),\n\n column_stats as (\n\n select\n table_database,\n table_schema,\n table_name,\n max(relation_id) as relation_id,\n max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n array_to_string(\n array_agg(\n case\n when clustering_ordinal_position is not null then column_name\n else null\n end ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n\n from columns\n group by 1,2,3\n\n )\n\n select\n unsharded_tables.table_database,\n unsharded_tables.table_schema,\n case\n when is_date_shard then concat(unsharded_tables.table_name, '*')\n else unsharded_tables.table_name\n end as table_name,\n unsharded_tables.table_type,\n\n -- coalesce name and type for External tables - these columns are not\n -- present in the COLUMN_FIELD_PATHS resultset\n coalesce(columns.column_name, '') as column_name,\n -- invent a row number to account for nested fields -- BQ does\n -- not treat these nested properties as independent fields\n row_number() over (\n partition by relation_id\n order by columns.column_index, columns.column_name\n ) as column_index,\n coalesce(columns.column_type, '') as column_type,\n columns.column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_shards.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_shards.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_shards.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n is_clustered as `stats__clustering_fields__include`\n\n -- join using relation_id (an actual relation, not a shard prefix) to make\n -- sure that column metadata is picked up through the join. This will only\n -- return the column information for the \"max\" table in a date-sharded table set\n from unsharded_tables\n left join columns using (relation_id)\n left join column_stats using (relation_id)\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.265184, "supported_languages": null}, "macro.dbt_bigquery.partition_by": {"unique_id": "macro.dbt_bigquery.partition_by", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.275723, "supported_languages": null}, "macro.dbt_bigquery.cluster_by": {"unique_id": "macro.dbt_bigquery.cluster_by", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.276905, "supported_languages": null}, "macro.dbt_bigquery.bigquery_options": {"unique_id": "macro.dbt_bigquery.bigquery_options", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_options", "macro_sql": "{% macro bigquery_options(opts) %}\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.278045, "supported_languages": null}, "macro.dbt_bigquery.bigquery_table_options": {"unique_id": "macro.dbt_bigquery.bigquery_table_options", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.278898, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_table_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n as (\n {{ compiled_code }}\n );\n {%- elif language == 'python' -%}\n {#--\n N.B. Python models _can_ write to temp views HOWEVER they use a different session\n and have already expired by the time they need to be used (I.E. in merges for incremental models)\n\n TODO: Deep dive into spark sessions to see if we can reuse a single session for an entire\n dbt invocation.\n --#}\n {{ py_write_table(compiled_code=compiled_code, target_relation=relation.quote(database=False, schema=False, identifier=False)) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"bigquery__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_table_options", "macro.dbt_bigquery.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.28196, "supported_languages": null}, "macro.dbt_bigquery.bigquery_view_options": {"unique_id": "macro.dbt_bigquery.bigquery_view_options", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_view_options", "macro_sql": "{% macro bigquery_view_options(config, node) %}\n {% set opts = adapter.get_view_options(config, node) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.282748, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_view_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_view_as", "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {{ bigquery_view_options(config, model) }}\n as {{ sql }};\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_view_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.283753, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_schema": {"unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.284193, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_relation": {"unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% call statement('drop_relation') -%}\n drop {{ relation.type }} if exists {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.284822, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.2853131, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.285791, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_schemas": {"unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.286277, "supported_languages": null}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.28687, "supported_languages": null}, "macro.dbt_bigquery.bigquery__persist_docs": {"unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.287905, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.288435, "supported_languages": null}, "macro.dbt_bigquery.bigquery__rename_relation": {"unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.288954, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_add_columns": {"unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_relation_add_columns", "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.2902389, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_drop_columns": {"unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_relation_drop_columns", "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in drop_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.291457, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_type": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#-- Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_relation", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.2935529, "supported_languages": null}, "macro.dbt_bigquery.bigquery__test_unique": {"unique_id": "macro.dbt_bigquery.bigquery__test_unique", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__test_unique", "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n\n select {{ column_name }} as unique_field\n from {{ model }}\n where {{ column_name }} is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.294105, "supported_languages": null}, "macro.dbt_bigquery.bigquery__upload_file": {"unique_id": "macro.dbt_bigquery.bigquery__upload_file", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__upload_file", "macro_sql": "{% macro bigquery__upload_file(local_file_path, database, table_schema, table_name) %}\n\n {{ log(\"kwargs: \" ~ kwargs) }}\n\n {% do adapter.upload_file(local_file_path, database, table_schema, table_name, kwargs=kwargs) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.295006, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.296138, "supported_languages": null}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.296671, "supported_languages": null}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.2985752, "supported_languages": null}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3004212, "supported_languages": null}, "macro.dbt_bigquery.materialization_view_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {% set to_return = create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_or_replace_view", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.302539, "supported_languages": ["sql"]}, "macro.dbt_bigquery.materialization_table_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery', supported_languages=['sql', 'python']-%}\n\n {%- set language = model['language'] -%}\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n We only need to drop this thing if it is not a table.\n If it _is_ already a table, then we can overwrite it without downtime\n Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n -- build model\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.311878, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.py_write_table": {"unique_id": "macro.dbt_bigquery.py_write_table", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation) %}\nfrom pyspark.sql import SparkSession\n\nspark = SparkSession.builder.appName('smallTest').getOrCreate()\n\nspark.conf.set(\"viewsEnabled\",\"true\")\nspark.conf.set(\"temporaryGcsBucket\",\"{{target.gcs_bucket}}\")\n\n{{ compiled_code }}\ndbt = dbtObj(spark.read.format(\"bigquery\").load)\ndf = model(dbt, spark)\n\n# COMMAND ----------\n# this is materialization code dbt generated, please do not modify\n\nimport pyspark\n# make sure pandas exists before using it\ntry:\n import pandas\n pandas_available = True\nexcept ImportError:\n pandas_available = False\n\n# make sure pyspark.pandas exists before using it\ntry:\n import pyspark.pandas\n pyspark_pandas_api_available = True\nexcept ImportError:\n pyspark_pandas_api_available = False\n\n# make sure databricks.koalas exists before using it\ntry:\n import databricks.koalas\n koalas_available = True\nexcept ImportError:\n koalas_available = False\n\n# preferentially convert pandas DataFrames to pandas-on-Spark or Koalas DataFrames first\n# since they know how to convert pandas DataFrames better than `spark.createDataFrame(df)`\n# and converting from pandas-on-Spark to Spark DataFrame has no overhead\nif pyspark_pandas_api_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = pyspark.pandas.frame.DataFrame(df)\nelif koalas_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = databricks.koalas.frame.DataFrame(df)\n\n# convert to pyspark.sql.dataframe.DataFrame\nif isinstance(df, pyspark.sql.dataframe.DataFrame):\n pass # since it is already a Spark DataFrame\nelif pyspark_pandas_api_available and isinstance(df, pyspark.pandas.frame.DataFrame):\n df = df.to_spark()\nelif koalas_available and isinstance(df, databricks.koalas.frame.DataFrame):\n df = df.to_spark()\nelif pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = spark.createDataFrame(df)\nelse:\n msg = f\"{type(df)} is not a supported type for dbt Python materialization\"\n raise Exception(msg)\n\ndf.write \\\n .mode(\"overwrite\") \\\n .format(\"bigquery\") \\\n .option(\"writeMethod\", \"direct\").option(\"writeDisposition\", 'WRITE_TRUNCATE') \\\n .save(\"{{target_relation}}\")\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3129, "supported_languages": null}, "macro.dbt_bigquery.materialization_copy_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "name": "materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {% set destination = this.incorporate(type='table') %}\n\n {# there can be several ref() or source() according to BQ copy API docs #}\n {# cycle over ref() and source() to create source tables array #}\n {% set source_array = [] %}\n {% for ref_table in model.refs %}\n {{ source_array.append(ref(*ref_table)) }}\n {% endfor %}\n\n {% for src_table in model.sources %}\n {{ source_array.append(source(*src_table)) }}\n {% endfor %}\n\n {# Call adapter copy_table function #}\n {%- set result_str = adapter.copy_table(\n source_array,\n destination,\n config.get('copy_materialization', default = 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {%- do apply_grants(target_relation, grant_config) -%}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.31675, "supported_languages": ["sql"]}, "macro.dbt_bigquery.declare_dbt_max_partition": {"unique_id": "macro.dbt_bigquery.declare_dbt_max_partition", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "declare_dbt_max_partition", "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, complied_code, language='sql') %}\n\n {#-- TODO: revisit partitioning with python models --#}\n {%- if '_dbt_max_partition' in complied_code and language == 'sql' -%}\n\n declare _dbt_max_partition {{ partition_by.data_type }} default (\n select max({{ partition_by.field }}) from {{ this }}\n where {{ partition_by.field }} is not null\n );\n\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.322788, "supported_languages": null}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\") or 'merge' -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.324194, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_overwrite": {"unique_id": "macro.dbt_bigquery.bq_insert_overwrite", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_insert_overwrite", "macro_sql": "{% macro bq_insert_overwrite(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n) %}\n\n {% if partitions is not none and partitions != [] %} {# static #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {#-- Because we're putting the model SQL _directly_ into the MERGE statement,\n we need to prepend the MERGE statement with the user-configured sql_header,\n which may be needed to resolve that model SQL (e.g. referencing a variable or UDF in the header)\n in the \"dynamic\" case, we save the model SQL result as a temp table first, wherein the\n sql_header is included by the create_table_as macro.\n #}\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n {% else %} {# dynamic #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_by.data_type }}>;\n\n {# have we already created the temp table to check for schema changes? #}\n {% if not tmp_relation_exists %}\n {{ declare_dbt_max_partition(this, partition_by, sql) }}\n\n -- 1. create a temp table\n {{ create_table_as(True, tmp_relation, compiled_code) }}\n {% else %}\n -- 1. temp table already exists, we used it to check for schema changes\n {% endif %}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n array_agg(distinct {{ partition_by.render() }})\n from {{ tmp_relation }}\n );\n\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate]) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql", "macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.328026, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_build_sql": {"unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_generate_incremental_build_sql", "macro_sql": "{% macro bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n) %}\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% if partition_by is none %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n ) %}\n\n {% else %} {# strategy == 'merge' #}\n {%- set source_sql -%}\n {%- if tmp_relation_exists -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n (\n {{sql}}\n )\n {%- endif -%}\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n {% endif %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bq_insert_overwrite", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3307579, "supported_languages": null}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery', supported_languages=['sql', 'python'] -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] %}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% else %}\n {%- if language == 'python' and strategy == 'insert_overwrite' -%}\n {#-- This lets us move forward assuming no python will be directly templated into a query --#}\n {%- set python_unsupported_msg -%}\n The 'insert_overwrite' strategy is not yet supported for python models.\n {%- endset %}\n {% do exceptions.raise_compiler_error(python_unsupported_msg) %}\n {%- endif -%}\n\n {% set tmp_relation_exists = false %}\n {% if on_schema_change != 'ignore' or language == 'python' %}\n {#-- Check first, since otherwise we may not build a temp table --#}\n {#-- Python always needs to create a temp table --#}\n {%- call statement('create_tmp_relation', language=language) -%}\n {{ declare_dbt_max_partition(this, partition_by, compiled_code, language) +\n create_table_as(True, tmp_relation, compiled_code, language)\n }}\n {%- endcall -%}\n {% set tmp_relation_exists = true %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% endif %}\n\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {% set build_sql = bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, compiled_code, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n ) %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {%- if language == 'python' and tmp_relation -%}\n {{ adapter.drop_relation(tmp_relation) }}\n {%- endif -%}\n\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.process_schema_changes", "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3416371, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3430989, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_columns": {"unique_id": "macro.dbt_bigquery.bigquery__create_columns", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.343616, "supported_languages": null}, "macro.dbt_bigquery.bigquery__post_snapshot": {"unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3440619, "supported_languages": null}, "macro.dbt_bigquery.bigquery__except": {"unique_id": "macro.dbt_bigquery.bigquery__except", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.344671, "supported_languages": null}, "macro.dbt_bigquery.bigquery__dateadd": {"unique_id": "macro.dbt_bigquery.bigquery__dateadd", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.345634, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n current_timestamp()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.346404, "supported_languages": null}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3469949, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp_backcompat": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp_backcompat", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "bigquery__current_timestamp_backcompat", "macro_sql": "{% macro bigquery__current_timestamp_backcompat() -%}\n current_timestamp\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3472629, "supported_languages": null}, "macro.dbt_bigquery.bigquery__intersect": {"unique_id": "macro.dbt_bigquery.bigquery__intersect", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.347868, "supported_languages": null}, "macro.dbt_bigquery.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_bigquery.bigquery__escape_single_quotes", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.348825, "supported_languages": null}, "macro.dbt_bigquery.bigquery__right": {"unique_id": "macro.dbt_bigquery.bigquery__right", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.349795, "supported_languages": null}, "macro.dbt_bigquery.bigquery__listagg": {"unique_id": "macro.dbt_bigquery.bigquery__listagg", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3512409, "supported_languages": null}, "macro.dbt_bigquery.bigquery__datediff": {"unique_id": "macro.dbt_bigquery.bigquery__datediff", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n {% if dbt_version[0] == 1 and dbt_version[2] >= 2 %}\n {{ return(dbt.datediff(first_date, second_date, datepart)) }}\n {% else %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3529952, "supported_languages": null}, "macro.dbt_bigquery.bigquery__safe_cast": {"unique_id": "macro.dbt_bigquery.bigquery__safe_cast", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.353798, "supported_languages": null}, "macro.dbt_bigquery.bigquery__hash": {"unique_id": "macro.dbt_bigquery.bigquery__hash", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.354597, "supported_languages": null}, "macro.dbt_bigquery.bigquery__position": {"unique_id": "macro.dbt_bigquery.bigquery__position", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.355435, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_concat": {"unique_id": "macro.dbt_bigquery.bigquery__array_concat", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.356241, "supported_languages": null}, "macro.dbt_bigquery.bigquery__bool_or": {"unique_id": "macro.dbt_bigquery.bigquery__bool_or", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n\n logical_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.35694, "supported_languages": null}, "macro.dbt_bigquery.bigquery__split_part": {"unique_id": "macro.dbt_bigquery.bigquery__split_part", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3590028, "supported_languages": null}, "macro.dbt_bigquery.bigquery__date_trunc": {"unique_id": "macro.dbt_bigquery.bigquery__date_trunc", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3598359, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_construct": {"unique_id": "macro.dbt_bigquery.bigquery__array_construct", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n [ {{ inputs|join(' , ') }} ]\n {% else %}\n ARRAY<{{data_type}}>[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.361055, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_append": {"unique_id": "macro.dbt_bigquery.bigquery__array_append", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ array_concat(array, array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.361978, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_show_grant_sql": {"unique_id": "macro.dbt_bigquery.bigquery__get_show_grant_sql", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "bigquery__get_show_grant_sql", "macro_sql": "{% macro bigquery__get_show_grant_sql(relation) %}\n {% set location = adapter.get_dataset_location(relation) %}\n {% set relation = relation.incorporate(location=location) %}\n\n select privilege_type, grantee\n from {{ relation.information_schema(\"OBJECT_PRIVILEGES\") }}\n where object_schema = \"{{ relation.dataset }}\"\n and object_name = \"{{ relation.identifier }}\"\n -- filter out current user\n and split(grantee, ':')[offset(1)] != session_user()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.364064, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_grant_sql": {"unique_id": "macro.dbt_bigquery.bigquery__get_grant_sql", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "bigquery__get_grant_sql", "macro_sql": "\n\n\n{%- macro bigquery__get_grant_sql(relation, privilege, grantee) -%}\n grant `{{ privilege }}` on {{ relation.type }} {{ relation }} to {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.364853, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_revoke_sql": {"unique_id": "macro.dbt_bigquery.bigquery__get_revoke_sql", "package_name": "dbt_bigquery", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "bigquery__get_revoke_sql", "macro_sql": "{%- macro bigquery__get_revoke_sql(relation, privilege, grantee) -%}\n revoke `{{ privilege }}` on {{ relation.type }} {{ relation }} from {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.365629, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.369005, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.369637, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.370121, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.370595, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3710752, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.372384, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.373364, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.374353, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3759098, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.37678, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.386128, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.386681, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.387406, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.389674, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.390217, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.390784, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.3951292, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.399363, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.408751, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4096708, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.410221, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4105291, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4110138, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.411409, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4120681, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.414785, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4154, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.41622, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.4175942, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.434321, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "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 {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.440588, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4421089, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4430962, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.444414, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.445647, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.449961, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4517062, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4538062, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.454561, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.456844, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4674208, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + 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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.472548, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "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": 1667945763.4733, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\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 );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.475649, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.47649, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.478527, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.480672, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4832032, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.483964, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.484576, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4854279, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.486041, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.486909, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.4875379, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.488411, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.489036, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.489547, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.4904408, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "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('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, '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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.5049589, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.518049, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.521878, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.5256581, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.528354, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "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 {{ adapter.rename_relation(existing_relation, backup_relation) }}\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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.535904, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.5375779, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.538183, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.539561, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.5408762, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "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 {{ adapter.rename_relation(existing_relation, backup_relation) }}\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 -%}", "resource_type": "macro", "tags": [], "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": 1667945763.54837, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.5495412, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.55026, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "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=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "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": 1667945763.5549061, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.5562088, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.556739, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.5573308, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.558183, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "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 comparision 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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.567842, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.579388, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.5822341, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.582978, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.5845199, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.5851462, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.5855942, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.586061, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.586455, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.586981, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.587376, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.588913, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.58952, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.593798, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.595167, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.595907, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.597588, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.598448, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.5993652, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.600776, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.601633, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.603101, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.604436, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.605501, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.607481, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.61221, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.614283, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.615263, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.620356, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 Partiton 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.624202, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.626648, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.627438, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.62857, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6288471, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6301389, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.630692, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.63176, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.632185, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.633239, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.633603, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.63487, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6354182, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.636395, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.636669, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.637749, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6382248, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.639389, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.640042, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6420019, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.643313, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.644588, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.645142, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.646291, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.646762, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6478221, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.648365, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.649394, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.64993, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.650969, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.651328, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.65247, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.652926, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.653949, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6543071, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6569788, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.657485, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.658189, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.658693, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.659231, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.659733, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.660264, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.660846, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.661385, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6618938, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6624289, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.662912, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.663444, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.663927, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.665044, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6654952, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.666525, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.666883, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.668163, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6690109, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6695008, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.671179, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.671731, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.672637, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.673741, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.674175, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.675551, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6763499, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.677473, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.677923, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.679261, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.679882, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.680419, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.681025, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.682602, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6831, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.683576, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.683937, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.684479, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.68474, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6852758, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.685826, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.6875038, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.688187, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.688755, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.6901572, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.699074, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.69967, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.700442, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7014568, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7023108, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.703428, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.704074, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.704839, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7054799, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.706059, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7067761, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7077692, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.70864, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7105238, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7114198, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.711894, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.712528, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7139971, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "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').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.715339, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.71974, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.720139, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.720691, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.721071, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7221801, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.722791, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7231429, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.72387, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7244842, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.725211, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.725834, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7265751, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.728702, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.729475, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7302861, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.731025, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.734647, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7367182, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7372851, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.737949, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.738511, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.739376, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.7409012, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.744875, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7457201, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.74633, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.746847, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.747434, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.7482398, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7489102, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7498848, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.750495, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.751033, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7554, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.756093, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.757096, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7576919, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.75878, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.75952, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.761416, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945763.7622342, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.764715, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.768728, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "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(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.770224, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_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[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.771671, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "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 def __repr__(self):\n return '{{ this }}'\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: ref(*args, 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7729611, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.773223, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7749178, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.775678, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.776601, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.77749, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_group_history_columns": {"unique_id": "macro.microsoft_ads_source.get_ad_group_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.780279, "supported_languages": null}, "macro.microsoft_ads_source.get_campaign_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_campaign_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_campaign_daily_report_columns.sql", "original_file_path": "macros/get_campaign_daily_report_columns.sql", "name": "get_campaign_daily_report_columns", "macro_sql": "{% macro get_campaign_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7856169, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_group_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_ad_group_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_ad_group_daily_report_columns.sql", "original_file_path": "macros/get_ad_group_daily_report_columns.sql", "name": "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_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.791374, "supported_languages": null}, "macro.microsoft_ads_source.get_account_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_account_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_account_daily_report_columns.sql", "original_file_path": "macros/get_account_daily_report_columns.sql", "name": "get_account_daily_report_columns", "macro_sql": "{% macro get_account_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.7962298, "supported_languages": null}, "macro.microsoft_ads_source.get_campaign_history_columns": {"unique_id": "macro.microsoft_ads_source.get_campaign_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.799124, "supported_languages": null}, "macro.microsoft_ads_source.get_account_history_columns": {"unique_id": "macro.microsoft_ads_source.get_account_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"time_zone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8014421, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_history_columns": {"unique_id": "macro.microsoft_ads_source.get_ad_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"title_part_1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"final_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8043158, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_ad_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_ad_daily_report_columns.sql", "original_file_path": "macros/get_ad_daily_report_columns.sql", "name": "get_ad_daily_report_columns", "macro_sql": "{% macro get_ad_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8103418, "supported_languages": null}, "macro.microsoft_ads_source.get_keyword_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_keyword_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_keyword_daily_report_columns.sql", "original_file_path": "macros/get_keyword_daily_report_columns.sql", "name": "get_keyword_daily_report_columns", "macro_sql": "{% macro get_keyword_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8166678, "supported_languages": null}, "macro.microsoft_ads_source.get_keyword_history_columns": {"unique_id": "macro.microsoft_ads_source.get_keyword_history_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "name": "get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8193002, "supported_languages": null}, "macro.microsoft_ads_source.get_search_daily_report_columns": {"unique_id": "macro.microsoft_ads_source.get_search_daily_report_columns", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "macros/get_search_daily_report_columns.sql", "original_file_path": "macros/get_search_daily_report_columns.sql", "name": "get_search_daily_report_columns", "macro_sql": "{% macro get_search_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"search_query\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8253481, "supported_languages": null}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.826397, "supported_languages": null}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.826667, "supported_languages": null}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.826924, "supported_languages": null}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.828179, "supported_languages": null}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.828722, "supported_languages": null}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.829748, "supported_languages": null}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.830164, "supported_languages": null}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8322492, "supported_languages": null}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.832514, "supported_languages": null}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.832936, "supported_languages": null}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.833199, "supported_languages": null}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8334541, "supported_languages": null}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.834004, "supported_languages": null}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.834265, "supported_languages": null}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() %}\n timestamp without time zone\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8345191, "supported_languages": null}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8347678, "supported_languages": null}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.835294, "supported_languages": null}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.835553, "supported_languages": null}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.835804, "supported_languages": null}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.836332, "supported_languages": null}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.83659, "supported_languages": null}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.836839, "supported_languages": null}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.837363, "supported_languages": null}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.83762, "supported_languages": null}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.837868, "supported_languages": null}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.838398, "supported_languages": null}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.838656, "supported_languages": null}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.838908, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.84053, "supported_languages": null}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "cast_array_to_string", "macro_sql": "{% macro cast_array_to_string(array) %}\n {{ adapter.dispatch('cast_array_to_string', 'dbt_utils') (array) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__cast_array_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.841963, "supported_languages": null}, "macro.dbt_utils.default__cast_array_to_string": {"unique_id": "macro.dbt_utils.default__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "default__cast_array_to_string", "macro_sql": "{% macro default__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.84261, "supported_languages": null}, "macro.dbt_utils.postgres__cast_array_to_string": {"unique_id": "macro.dbt_utils.postgres__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "postgres__cast_array_to_string", "macro_sql": "{% macro postgres__cast_array_to_string(array) %}\n {%- set array_as_string -%}cast({{ array }} as {{ dbt_utils.type_string() }}){%- endset -%}\n {{ dbt_utils.replace(dbt_utils.replace(array_as_string,\"'}'\",\"']'\"),\"'{'\",\"'['\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.843582, "supported_languages": null}, "macro.dbt_utils.redshift__cast_array_to_string": {"unique_id": "macro.dbt_utils.redshift__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "redshift__cast_array_to_string", "macro_sql": "{% macro redshift__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8440619, "supported_languages": null}, "macro.dbt_utils.bigquery__cast_array_to_string": {"unique_id": "macro.dbt_utils.bigquery__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "bigquery__cast_array_to_string", "macro_sql": "{% macro bigquery__cast_array_to_string(array) %}\n '['||(select string_agg(cast(element as string), ',') from unnest({{ array }}) element)||']'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.844417, "supported_languages": null}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8455539, "supported_languages": null}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.845918, "supported_languages": null}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.846271, "supported_languages": null}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8480399, "supported_languages": null}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8487139, "supported_languages": null}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.849271, "supported_languages": null}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.849798, "supported_languages": null}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "redshift__dateadd", "macro_sql": "{% macro redshift__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ return(dbt_utils.default__dateadd(datepart, interval, from_date_or_timestamp)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.850423, "supported_languages": null}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.851458, "supported_languages": null}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.851732, "supported_languages": null}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.851987, "supported_languages": null}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.853227, "supported_languages": null}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.853695, "supported_languages": null}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.854153, "supported_languages": null}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.854614, "supported_languages": null}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.85632, "supported_languages": null}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.856778, "supported_languages": null}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8577778, "supported_languages": null}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.858303, "supported_languages": null}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8641012, "supported_languages": null}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.865383, "supported_languages": null}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.866286, "supported_languages": null}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.867529, "supported_languages": null}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "redshift__listagg", "macro_sql": "{% macro redshift__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n {% set ns = namespace() %}\n {% set ns.delimiter_text_regex = delimiter_text|trim(\"'\") %}\n {% set special_chars %}\\,^,$,.,|,?,*,+,(,),[,],{,}{% endset %} \n {%- for char in special_chars.split(',') -%}\n {% set escape_char %}\\\\{{ char }}{% endset %}\n {% set ns.delimiter_text_regex = ns.delimiter_text_regex|replace(char,escape_char) %}\n {%- endfor -%}\n\n {% set regex %}'([^{{ ns.delimiter_text_regex }}]+{{ ns.delimiter_text_regex }}){1,{{ limit_num - 1}}}[^{{ ns.delimiter_text_regex }}]+'{% endset %}\n regexp_substr(\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,{{ regex }}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8704839, "supported_languages": null}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.877077, "supported_languages": null}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8776152, "supported_languages": null}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8781388, "supported_languages": null}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "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 ({{ dbt_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.883542, "supported_languages": null}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "redshift__datediff", "macro_sql": "{% macro redshift__datediff(first_date, second_date, datepart) -%}\n\n {{ return(dbt_utils.default__datediff(first_date, second_date, datepart)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.88418, "supported_languages": null}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.885493, "supported_languages": null}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.885961, "supported_languages": null}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.886392, "supported_languages": null}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.886813, "supported_languages": null}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8879302, "supported_languages": null}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.888404, "supported_languages": null}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.88884, "supported_languages": null}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8899992, "supported_languages": null}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8904698, "supported_languages": null}, "macro.dbt_utils.redshift__cast_bool_to_text": {"unique_id": "macro.dbt_utils.redshift__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "redshift__cast_bool_to_text", "macro_sql": "{% macro redshift__cast_bool_to_text(field) %}\n case\n when {{ field }} is true then 'true'\n when {{ field }} is false then 'false'\n end::text\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.890891, "supported_languages": null}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__identifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8925388, "supported_languages": null}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.892904, "supported_languages": null}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.89325, "supported_languages": null}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8943841, "supported_languages": null}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n \n any_value({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8947399, "supported_languages": null}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n {#- /*Postgres doesn't support any_value, so we're using min() to get the same result*/ -#}\n min({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.895102, "supported_languages": null}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.896412, "supported_languages": null}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.896868, "supported_languages": null}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.897316, "supported_languages": null}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8985212, "supported_languages": null}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.8988822, "supported_languages": null}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.900654, "supported_languages": null}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.901043, "supported_languages": null}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9013062, "supported_languages": null}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.901561, "supported_languages": null}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9020889, "supported_languages": null}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9024792, "supported_languages": null}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.902973, "supported_languages": null}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.903359, "supported_languages": null}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9038038, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.907584, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.90907, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__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 exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.910544, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9111638, "supported_languages": null}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt_utils')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.912514, "supported_languages": null}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.912975, "supported_languages": null}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.913413, "supported_languages": null}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "redshift__array_concat", "macro_sql": "{% macro redshift__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.913853, "supported_languages": null}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.915088, "supported_languages": null}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n \n bool_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.915446, "supported_languages": null}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n \n boolor_agg({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.915972, "supported_languages": null}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n \n logical_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9163241, "supported_languages": null}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.918108, "supported_languages": null}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.918972, "supported_languages": null}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.91946, "supported_languages": null}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "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_utils.dateadd('day', '-1',\n dbt_utils.dateadd('month', '3', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9207199, "supported_languages": null}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "redshift__last_day", "macro_sql": "{% macro redshift__last_day(date, datepart) %}\n\n {{ return(dbt_utils.default__last_day(date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9213061, "supported_languages": null}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.925208, "supported_languages": null}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.925754, "supported_languages": null}, "macro.dbt_utils._split_part_negative": {"unique_id": "macro.dbt_utils._split_part_negative", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9264781, "supported_languages": null}, "macro.dbt_utils.postgres__split_part": {"unique_id": "macro.dbt_utils.postgres__split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9275331, "supported_languages": null}, "macro.dbt_utils.redshift__split_part": {"unique_id": "macro.dbt_utils.redshift__split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "redshift__split_part", "macro_sql": "{% macro redshift__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.92861, "supported_languages": null}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.929774, "supported_languages": null}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.931029, "supported_languages": null}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.931469, "supported_languages": null}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.931906, "supported_languages": null}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs = [], data_type = api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt_utils')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.933629, "supported_languages": null}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9344141, "supported_languages": null}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.934889, "supported_languages": null}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "redshift__array_construct", "macro_sql": "{% macro redshift__array_construct(inputs, data_type) -%}\n array( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9353511, "supported_languages": null}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n [ {{ inputs|join(' , ') }} ]\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9358132, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.938699, "supported_languages": null}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt_utils')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9400299, "supported_languages": null}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.940479, "supported_languages": null}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.941076, "supported_languages": null}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "redshift__array_append", "macro_sql": "{% macro redshift__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.941679, "supported_languages": null}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.956104, "supported_languages": null}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.957749, "supported_languages": null}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.958762, "supported_languages": null}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.960352, "supported_languages": null}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9761899, "supported_languages": ["sql"]}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9775958, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.979091, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9806972, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.982732, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.983955, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "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_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9849868, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "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": 1667945763.986666, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9874, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.988775, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = '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\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.9897542, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.991759, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.99284, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.994263, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.995309, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.996516, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.99709, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945763.999014, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.000681, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.0025432, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.00381, "supported_languages": null}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.005354, "supported_languages": null}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.005903, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "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": 1667945764.007143, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.007736, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.0097861, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.011862, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.013632, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "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_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.0147321, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\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 {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "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": 1667945764.016351, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.017395, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "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": 1667945764.018892, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model) %}\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\nwith validation as (\n select\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),\nvalidation_errors as (\n select\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.020563, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.02263, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\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_utils.type_timestamp() }})= cast({{ dbt_utils.dateadd(datepart, interval, previous_column_name) }} as {{ dbt_utils.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.0248058, "supported_languages": null}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.026348, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.026912, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.02911, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\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-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.0319092, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.03971, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "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 }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_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 nore 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.044405, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.045505, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.0460439, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.0471702, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.047803, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.048863, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.049435, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "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\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.051143, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.053262, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.05514, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.0558841, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 \"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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.057058, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.0582678, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.059563, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.0616682, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.064343, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.0667489, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.068075, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.068683, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.070357, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.072456, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.07524, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.07673, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.0776331, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.079823, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\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 cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "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": 1667945764.083019, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.087765, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\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_utils.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.09426, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.100919, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "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\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 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 {%- 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 cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.110451, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.111676, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.1124952, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.119375, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.120088, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.1207428, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.121382, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.1219351, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.1225019, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.124426, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.127423, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.12895, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.129908, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.131177, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.132257, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.1363251, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 \"table_schema\",\n table_name as \"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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.137198, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.1399539, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.141572, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.144726, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.1494882, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.152601, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.1553411, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.156986, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.159297, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.1606872, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.162587, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.164138, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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 \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.164437, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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 \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.164734, "supported_languages": null}, "macro.dbt_utils.bigquery__get_table_types_sql": {"unique_id": "macro.dbt_utils.bigquery__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "bigquery__get_table_types_sql", "macro_sql": "{% macro bigquery__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 `table_type`\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.165025, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.168203, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.1691148, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.171814, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.174649, "supported_languages": null}, "macro.linkedin_source.get_creative_history_columns": {"unique_id": "macro.linkedin_source.get_creative_history_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "name": "get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"call_to_action_label_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"click_uri\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.178355, "supported_languages": null}, "macro.linkedin_source.get_campaign_group_history_columns": {"unique_id": "macro.linkedin_source.get_campaign_group_history_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_campaign_group_history_columns.sql", "original_file_path": "macros/get_campaign_group_history_columns.sql", "name": "get_campaign_group_history_columns", "macro_sql": "{% macro get_campaign_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"backfilled\", \"datatype\": \"boolean\"},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.181855, "supported_languages": null}, "macro.linkedin_source.get_ad_analytics_by_campaign_columns": {"unique_id": "macro.linkedin_source.get_ad_analytics_by_campaign_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_ad_analytics_by_campaign_columns.sql", "original_file_path": "macros/get_ad_analytics_by_campaign_columns.sql", "name": "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_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"day\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.1848269, "supported_languages": null}, "macro.linkedin_source.get_campaign_history_columns": {"unique_id": "macro.linkedin_source.get_campaign_history_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"audience_expansion_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"campaign_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creative_selection\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"daily_budget_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"daily_budget_currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"format\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"locale_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"locale_language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"objective_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"offsite_delivery_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"optimization_target_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.193111, "supported_languages": null}, "macro.linkedin_source.get_ad_analytics_by_creative_columns": {"unique_id": "macro.linkedin_source.get_ad_analytics_by_creative_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_ad_analytics_by_creative_columns.sql", "original_file_path": "macros/get_ad_analytics_by_creative_columns.sql", "name": "get_ad_analytics_by_creative_columns", "macro_sql": "{% macro get_ad_analytics_by_creative_columns() %}\n\n{% set columns = [\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"creative_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"day\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__creative_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.196882, "supported_languages": null}, "macro.linkedin_source.get_account_history_columns": {"unique_id": "macro.linkedin_source.get_account_history_columns", "package_name": "linkedin_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.200263, "supported_languages": null}, "macro.spark_utils.get_tables": {"unique_id": "macro.spark_utils.get_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.21509, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"unique_id": "macro.spark_utils.get_delta_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.217935, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"unique_id": "macro.spark_utils.get_statistic_columns", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.2212532, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"unique_id": "macro.spark_utils.spark_optimize_delta_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.223872, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.22628, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"unique_id": "macro.spark_utils.spark_analyze_tables", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.230997, "supported_languages": null}, "macro.spark_utils.spark__concat": {"unique_id": "macro.spark_utils.spark__concat", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "name": "spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.231978, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"unique_id": "macro.spark_utils.spark__type_numeric", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "name": "spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.232609, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"unique_id": "macro.spark_utils.spark__dateadd", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.2408729, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"unique_id": "macro.spark_utils.spark__datediff", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.260603, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"unique_id": "macro.spark_utils.spark__current_timestamp", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "name": "spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.261329, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "name": "spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.261589, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"unique_id": "macro.spark_utils.spark__split_part", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.263524, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.268311, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.269374, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.2702599, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.27115, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"unique_id": "macro.spark_utils.assert_not_null", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "name": "assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.272379, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"unique_id": "macro.spark_utils.default__assert_not_null", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.273047, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"unique_id": "macro.spark_utils.spark__convert_timezone", "package_name": "spark_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.273963, "supported_languages": null}, "macro.facebook_ads.get_url_tags_query": {"unique_id": "macro.facebook_ads.get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "get_url_tags_query", "macro_sql": "{% macro get_url_tags_query() %}\n {{ return(adapter.dispatch('get_url_tags_query') ()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.facebook_ads.bigquery__get_url_tags_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.276879, "supported_languages": null}, "macro.facebook_ads.bigquery__get_url_tags_query": {"unique_id": "macro.facebook_ads.bigquery__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "bigquery__get_url_tags_query", "macro_sql": "{% macro bigquery__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\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 _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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.277259, "supported_languages": null}, "macro.facebook_ads.postgres__get_url_tags_query": {"unique_id": "macro.facebook_ads.postgres__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "postgres__get_url_tags_query", "macro_sql": "{% macro postgres__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\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 _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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.277623, "supported_languages": null}, "macro.facebook_ads.redshift__get_url_tags_query": {"unique_id": "macro.facebook_ads.redshift__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "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 _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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.278173, "supported_languages": null}, "macro.facebook_ads.snowflake__get_url_tags_query": {"unique_id": "macro.facebook_ads.snowflake__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "snowflake__get_url_tags_query", "macro_sql": "{% macro snowflake__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.2785091, "supported_languages": null}, "macro.facebook_ads.spark__get_url_tags_query": {"unique_id": "macro.facebook_ads.spark__get_url_tags_query", "package_name": "facebook_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "name": "spark__get_url_tags_query", "macro_sql": "{% macro spark__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\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 _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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.278833, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"unique_id": "macro.dbt_date.get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.298569, "supported_languages": null}, "macro.dbt_date.default__get_date_dimension": {"unique_id": "macro.dbt_date.default__get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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_utils.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt_utils.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_utils.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_utils.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ dbt_utils.last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt_utils.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ dbt_utils.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_utils.type_int() }}) as quarter_of_year,\n cast({{ dbt_utils.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ dbt_utils.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_utils.type_int() }}) as year_number,\n cast({{ dbt_utils.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt_utils.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_utils.type_int", "macro.dbt_date.month_name", "macro.dbt_utils.date_trunc", "macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.305929, "supported_languages": null}, "macro.dbt_date.postgres__get_date_dimension": {"unique_id": "macro.dbt_date.postgres__get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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_utils.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt_utils.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_utils.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_utils.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ dbt_utils.last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt_utils.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ dbt_utils.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_utils.type_int() }}) as quarter_of_year,\n cast({{ dbt_utils.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# dbt_utils.last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt_utils.dateadd('day', '-1', dbt_utils.dateadd('month', '3', dbt_utils.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_utils.type_int() }}) as year_number,\n cast({{ dbt_utils.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt_utils.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_utils.type_int", "macro.dbt_date.month_name", "macro.dbt_utils.date_trunc", "macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.313401, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"unique_id": "macro.dbt_date.get_base_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.316295, "supported_languages": null}, "macro.dbt_date.default__get_base_dates": {"unique_id": "macro.dbt_date.default__get_base_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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_utils.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt_utils.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt_utils.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_utils.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_utils.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.318678, "supported_languages": null}, "macro.dbt_date.bigquery__get_base_dates": {"unique_id": "macro.dbt_date.bigquery__get_base_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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 date )\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as date )\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt_utils.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_utils.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_utils.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_utils.date_spine", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.320857, "supported_languages": null}, "macro.dbt_date.get_fiscal_year_dates": {"unique_id": "macro.dbt_date.get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.325127, "supported_languages": null}, "macro.dbt_date.default__get_fiscal_year_dates": {"unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "name": "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 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 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_utils.dateadd('day', 6, 'd.date_day') }} as date) as week_end_date\n from\n 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_utils.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_utils.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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.326944, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"unique_id": "macro.dbt_date.get_fiscal_periods", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "name": "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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.329582, "supported_languages": null}, "macro.dbt_date.tomorrow": {"unique_id": "macro.dbt_date.tomorrow", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "name": "tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.330543, "supported_languages": null}, "macro.dbt_date.next_week": {"unique_id": "macro.dbt_date.next_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "name": "next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.331407, "supported_languages": null}, "macro.dbt_date.next_month_name": {"unique_id": "macro.dbt_date.next_month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "name": "next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(1, tz), short=short) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "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": 1667945764.332483, "supported_languages": null}, "macro.dbt_date.next_month": {"unique_id": "macro.dbt_date.next_month", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "name": "next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.33334, "supported_languages": null}, "macro.dbt_date.day_name": {"unique_id": "macro.dbt_date.day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.33527, "supported_languages": null}, "macro.dbt_date.default__day_name": {"unique_id": "macro.dbt_date.default__day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.335936, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"unique_id": "macro.dbt_date.snowflake__day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.336617, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"unique_id": "macro.dbt_date.bigquery__day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.337271, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"unique_id": "macro.dbt_date.postgres__day_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3379369, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"unique_id": "macro.dbt_date.to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.339118, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"unique_id": "macro.dbt_date.default__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.339591, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.340063, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.340418, "supported_languages": null}, "macro.dbt_date.n_days_away": {"unique_id": "macro.dbt_date.n_days_away", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.341641, "supported_languages": null}, "macro.dbt_date.week_start": {"unique_id": "macro.dbt_date.week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.343308, "supported_languages": null}, "macro.dbt_date.default__week_start": {"unique_id": "macro.dbt_date.default__week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt_utils.date_trunc('week', date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.343808, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"unique_id": "macro.dbt_date.snowflake__week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "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_utils.dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.344767, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"unique_id": "macro.dbt_date.postgres__week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dbt_utils.dateadd('day', -1, dbt_utils.date_trunc('week', dbt_utils.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.345621, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"unique_id": "macro.dbt_date.iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.347318, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"unique_id": "macro.dbt_date._iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "_iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt_utils.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.347842, "supported_languages": null}, "macro.dbt_date.default__iso_week_start": {"unique_id": "macro.dbt_date.default__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.348308, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_start": {"unique_id": "macro.dbt_date.snowflake__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3487759, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_start": {"unique_id": "macro.dbt_date.postgres__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.349239, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"unique_id": "macro.dbt_date.n_days_ago", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "name": "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_utils.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.350812, "supported_languages": null}, "macro.dbt_date.last_week": {"unique_id": "macro.dbt_date.last_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "name": "last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.351674, "supported_languages": null}, "macro.dbt_date.now": {"unique_id": "macro.dbt_date.now", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "name": "now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt_utils.current_timestamp(), tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.352587, "supported_languages": null}, "macro.dbt_date.periods_since": {"unique_id": "macro.dbt_date.periods_since", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "name": "periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ dbt_utils.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.353785, "supported_languages": null}, "macro.dbt_date.today": {"unique_id": "macro.dbt_date.today", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "name": "today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.354696, "supported_languages": null}, "macro.dbt_date.last_month": {"unique_id": "macro.dbt_date.last_month", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "name": "last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3555672, "supported_languages": null}, "macro.dbt_date.day_of_year": {"unique_id": "macro.dbt_date.day_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.356832, "supported_languages": null}, "macro.dbt_date.default__day_of_year": {"unique_id": "macro.dbt_date.default__day_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.357305, "supported_languages": null}, "macro.dbt_date.postgres__day_of_year": {"unique_id": "macro.dbt_date.postgres__day_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3577678, "supported_languages": null}, "macro.dbt_date.redshift__day_of_year": {"unique_id": "macro.dbt_date.redshift__day_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ dbt_utils.type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3583841, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"unique_id": "macro.dbt_date.from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.36186, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"unique_id": "macro.dbt_date.default__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.362719, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.363594, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.365108, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.366386, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"unique_id": "macro.dbt_date.n_months_ago", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "name": "n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt_utils.date_trunc('month', \n dbt_utils.dateadd('month', -1 * n, \n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.367821, "supported_languages": null}, "macro.dbt_date.date_part": {"unique_id": "macro.dbt_date.date_part", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.368991, "supported_languages": null}, "macro.dbt_date.default__date_part": {"unique_id": "macro.dbt_date.default__date_part", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.36944, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"unique_id": "macro.dbt_date.bigquery__date_part", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3698921, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"unique_id": "macro.dbt_date.n_weeks_away", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "name": "n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt_utils.date_trunc('week', \n dbt_utils.dateadd('week', n, \n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.371271, "supported_languages": null}, "macro.dbt_date.day_of_month": {"unique_id": "macro.dbt_date.day_of_month", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "name": "day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.372225, "supported_languages": null}, "macro.dbt_date.redshift__day_of_month": {"unique_id": "macro.dbt_date.redshift__day_of_month", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "name": "redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ dbt_utils.type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.372848, "supported_languages": null}, "macro.dbt_date.yesterday": {"unique_id": "macro.dbt_date.yesterday", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "name": "yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3738282, "supported_languages": null}, "macro.dbt_date.day_of_week": {"unique_id": "macro.dbt_date.day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.378369, "supported_languages": null}, "macro.dbt_date.default__day_of_week": {"unique_id": "macro.dbt_date.default__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.379328, "supported_languages": null}, "macro.dbt_date.snowflake__day_of_week": {"unique_id": "macro.dbt_date.snowflake__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3806431, "supported_languages": null}, "macro.dbt_date.bigquery__day_of_week": {"unique_id": "macro.dbt_date.bigquery__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.381595, "supported_languages": null}, "macro.dbt_date.postgres__day_of_week": {"unique_id": "macro.dbt_date.postgres__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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_utils.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_utils.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.382984, "supported_languages": null}, "macro.dbt_date.redshift__day_of_week": {"unique_id": "macro.dbt_date.redshift__day_of_week", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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_utils.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt_utils.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3843682, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"unique_id": "macro.dbt_date.iso_week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "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", "resource_type": "macro", "tags": [], "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": 1667945764.385983, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"unique_id": "macro.dbt_date._iso_week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.3866901, "supported_languages": null}, "macro.dbt_date.default__iso_week_end": {"unique_id": "macro.dbt_date.default__iso_week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.387159, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_end": {"unique_id": "macro.dbt_date.snowflake__iso_week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.387626, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"unique_id": "macro.dbt_date.n_weeks_ago", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "name": "n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt_utils.date_trunc('week', \n dbt_utils.dateadd('week', -1 * n, \n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.389048, "supported_languages": null}, "macro.dbt_date.month_name": {"unique_id": "macro.dbt_date.month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3906639, "supported_languages": null}, "macro.dbt_date.default__month_name": {"unique_id": "macro.dbt_date.default__month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3913338, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"unique_id": "macro.dbt_date.bigquery__month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.391994, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"unique_id": "macro.dbt_date.snowflake__month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3926568, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"unique_id": "macro.dbt_date.postgres__month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.3933399, "supported_languages": null}, "macro.dbt_date.last_month_name": {"unique_id": "macro.dbt_date.last_month_name", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "name": "last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(1, tz), short=short) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "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": 1667945764.3944309, "supported_languages": null}, "macro.dbt_date.week_of_year": {"unique_id": "macro.dbt_date.week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.395968, "supported_languages": null}, "macro.dbt_date.default__week_of_year": {"unique_id": "macro.dbt_date.default__week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ dbt_utils.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.396586, "supported_languages": null}, "macro.dbt_date.postgres__week_of_year": {"unique_id": "macro.dbt_date.postgres__week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "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_utils.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.397088, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"unique_id": "macro.dbt_date.convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.bigquery__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.400512, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"unique_id": "macro.dbt_date.default__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\n{%- if not source_tz -%}\ncast(convert_timezone('{{ target_tz }}', {{ column }}) as {{ dbt_utils.type_timestamp() }})\n{%- else -%}\ncast(convert_timezone('{{ source_tz }}', '{{ target_tz }}', {{ column }}) as {{ dbt_utils.type_timestamp() }})\n{%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.401609, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"unique_id": "macro.dbt_date.bigquery__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.402123, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"unique_id": "macro.dbt_date.spark__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4026701, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"unique_id": "macro.dbt_date.postgres__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\n{%- if source_tz -%}\ncast({{ column }} at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt_utils.type_timestamp() }})\n{%- else -%}\ncast({{ column }} at time zone '{{ target_tz }}' as {{ dbt_utils.type_timestamp() }})\n{%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.403913, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"unique_id": "macro.dbt_date.redshift__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.404535, "supported_languages": null}, "macro.dbt_date.n_months_away": {"unique_id": "macro.dbt_date.n_months_away", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "name": "n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt_utils.date_trunc('month', \n dbt_utils.dateadd('month', n, \n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.405905, "supported_languages": null}, "macro.dbt_date.iso_week_of_year": {"unique_id": "macro.dbt_date.iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.407713, "supported_languages": null}, "macro.dbt_date._iso_week_of_year": {"unique_id": "macro.dbt_date._iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "_iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ dbt_utils.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4083571, "supported_languages": null}, "macro.dbt_date.default__iso_week_of_year": {"unique_id": "macro.dbt_date.default__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.408843, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_of_year": {"unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.409309, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_of_year": {"unique_id": "macro.dbt_date.postgres__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.409802, "supported_languages": null}, "macro.dbt_date.week_end": {"unique_id": "macro.dbt_date.week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4114408, "supported_languages": null}, "macro.dbt_date.default__week_end": {"unique_id": "macro.dbt_date.default__week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ dbt_utils.last_day(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.411923, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"unique_id": "macro.dbt_date.snowflake__week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.4126, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"unique_id": "macro.dbt_date.postgres__week_end", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945764.41327, "supported_languages": null}, "macro.dbt_date.next_month_number": {"unique_id": "macro.dbt_date.next_month_number", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "name": "next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(1, tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "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": 1667945764.414272, "supported_languages": null}, "macro.dbt_date.last_month_number": {"unique_id": "macro.dbt_date.last_month_number", "package_name": "dbt_date", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "name": "last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(1, tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "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": 1667945764.415283, "supported_languages": null}, "macro.google_ads_source.get_ad_group_history_columns": {"unique_id": "macro.google_ads_source.get_ad_group_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.418197, "supported_languages": null}, "macro.google_ads_source.get_ad_group_stats_columns": {"unique_id": "macro.google_ads_source.get_ad_group_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_group_stats_columns.sql", "original_file_path": "macros/get_ad_group_stats_columns.sql", "name": "get_ad_group_stats_columns", "macro_sql": "{% macro get_ad_group_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__ad_group_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.42264, "supported_languages": null}, "macro.google_ads_source.get_campaign_stats_columns": {"unique_id": "macro.google_ads_source.get_campaign_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_campaign_stats_columns.sql", "original_file_path": "macros/get_campaign_stats_columns.sql", "name": "get_campaign_stats_columns", "macro_sql": "{% macro get_campaign_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__campaign_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4266722, "supported_languages": null}, "macro.google_ads_source.get_campaign_history_columns": {"unique_id": "macro.google_ads_source.get_campaign_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertising_channel_subtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertising_channel_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_date\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_date\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tracking_url_template\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.430783, "supported_languages": null}, "macro.google_ads_source.get_ad_stats_columns": {"unique_id": "macro.google_ads_source.get_ad_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_stats_columns.sql", "original_file_path": "macros/get_ad_stats_columns.sql", "name": "get_ad_stats_columns", "macro_sql": "{% macro get_ad_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword_ad_group_criterion\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__ad_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.435429, "supported_languages": null}, "macro.google_ads_source.get_account_history_columns": {"unique_id": "macro.google_ads_source.get_account_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"auto_tagging_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"descriptive_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"time_zone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.438328, "supported_languages": null}, "macro.google_ads_source.get_ad_history_columns": {"unique_id": "macro.google_ads_source.get_ad_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"display_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"final_urls\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4415429, "supported_languages": null}, "macro.google_ads_source.get_ad_group_criterion_history_columns": {"unique_id": "macro.google_ads_source.get_ad_group_criterion_history_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_ad_group_criterion_history_columns.sql", "original_file_path": "macros/get_ad_group_criterion_history_columns.sql", "name": "get_ad_group_criterion_history_columns", "macro_sql": "{% macro get_ad_group_criterion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"base_campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"keyword_match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"keyword_text\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.445062, "supported_languages": null}, "macro.google_ads_source.get_keyword_stats_columns": {"unique_id": "macro.google_ads_source.get_keyword_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_keyword_stats_columns.sql", "original_file_path": "macros/get_keyword_stats_columns.sql", "name": "get_keyword_stats_columns", "macro_sql": "{% macro get_keyword_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_criterion_criterion_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__keyword_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4496691, "supported_languages": null}, "macro.google_ads_source.get_account_stats_columns": {"unique_id": "macro.google_ads_source.get_account_stats_columns", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/get_account_stats_columns.sql", "original_file_path": "macros/get_account_stats_columns.sql", "name": "get_account_stats_columns", "macro_sql": "{% macro get_account_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__account_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.45364, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.455194, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.457818, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.458372, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4589188, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.45946, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4600499, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4606059, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4622211, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.464443, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4675, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.468488, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.469304, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.470099, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.470908, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.47179, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.472685, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.473919, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.474276, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.474624, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.47502, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.476567, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.478674, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "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.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 {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.480831, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.482422, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4828758, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4833212, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.483756, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.484216, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4916549, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4922152, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.4927502, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.493781, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.499211, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.501801, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.502275, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.503186, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.504123, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.504566, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.505004, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.505445, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.507221, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "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_utils.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5091572, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5111868, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5119429, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5127301, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5141811, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "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.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.517636, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "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_utils.string_literal(relation) }} as {{ dbt_utils.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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.530001, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.531277, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.533029, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.538275, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.540181, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.542197, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.542741, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.543267, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.543851, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.544372, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.544888, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.547255, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "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 {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.550504, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.552855, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5534348, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.553988, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.554537, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5550761, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt_utils.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.555659, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5568461, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5572119, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.55779, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.560138, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.56384, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "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\n {% set relation=adapter.get_relation(\n database=var(database_variable, default_database),\n schema=schema,\n identifier=table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=database,\n schema=var(schema_variable, default_schema),\n identifier=table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.569695, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.574861, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.576192, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.576563, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.576919, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.578538, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.5801558, "supported_languages": null}, "macro.ad_reporting.is_enabled": {"unique_id": "macro.ad_reporting.is_enabled", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/is_enabled.sql", "original_file_path": "macros/is_enabled.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945774.700398, "supported_languages": null}, "macro.ad_reporting.get_date_from_timestamp": {"unique_id": "macro.ad_reporting.get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "get_date_from_timestamp", "macro_sql": "{% macro get_date_from_timestamp(column) %}\n {{ return(adapter.dispatch('get_date_from_timestamp') (column)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.ad_reporting.bigquery__get_date_from_timestamp"]}, "description": "This macro takes a column of type timestamp or forces the column into a timestamp (depending on the data warehouse) and extracts the date in the format of e.g. 2022-01-01.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "column", "type": "string", "description": "Specifies the column of type timestamp to extract the date from."}], "created_at": 1667945774.692182, "supported_languages": null}, "macro.ad_reporting.default__get_date_from_timestamp": {"unique_id": "macro.ad_reporting.default__get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "default__get_date_from_timestamp", "macro_sql": "{% macro default__get_date_from_timestamp(column) %}\n date({{column}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.583466, "supported_languages": null}, "macro.ad_reporting.bigquery__get_date_from_timestamp": {"unique_id": "macro.ad_reporting.bigquery__get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "bigquery__get_date_from_timestamp", "macro_sql": "{% macro bigquery__get_date_from_timestamp(column) %}\n\n cast({{column}} as date)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.583822, "supported_languages": null}, "macro.ad_reporting.spark__get_date_from_timestamp": {"unique_id": "macro.ad_reporting.spark__get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.584176, "supported_languages": null}, "macro.ad_reporting.snowflake__get_date_from_timestamp": {"unique_id": "macro.ad_reporting.snowflake__get_date_from_timestamp", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "name": "snowflake__get_date_from_timestamp", "macro_sql": "{% macro snowflake__get_date_from_timestamp(column) %}\n\n to_date(to_timestamp({{ column }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.584525, "supported_languages": null}, "macro.ad_reporting.union_ctes": {"unique_id": "macro.ad_reporting.union_ctes", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/union_ctes.sql", "original_file_path": "macros/union_ctes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1667945774.702338, "supported_languages": null}, "macro.ad_reporting.get_query": {"unique_id": "macro.ad_reporting.get_query", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_query.sql", "original_file_path": "macros/get_query.sql", "name": "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 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 {%- 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 {%- do final_fields_superset.update({ad_group_field: ad_group_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For ad level reports, add ad_fields -#}\n{%- if report_type == 'ad' -%}\n {%- for ad_field in ad_fields -%}\n {%- do final_fields_superset.update({ad_field: ad_field})-%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For url level reports, add url_fields -#}\n{%- if report_type == 'url' -%}\n {%- for url_field in url_fields -%}\n {%- do final_fields_superset.update({url_field: url_field})-%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For keyword level reports, add keyword_fields -#}\n{%- if report_type == 'keyword' -%}\n {%- for keyword_field in 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 -#}\n{%- if report_type == 'search' -%}\n {%- for search_field in 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 {{ get_date_from_timestamp('date_day') }} as date_day,\n cast( '{{ platform }}' as {{ dbt_utils.type_string() }}) as platform,\n\n {% for field in final_fields_superset.keys()|sort() -%}\n {% if field in ['clicks', 'impressions'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt_utils.type_int() }}) as {{ field }}\n\n {% elif field == 'spend' -%}\n cast({{ final_fields_superset[field] }} as {{ dbt_utils.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_utils.type_string() }}) as {{ field }} \n {% endif -%}\n {%- if not loop.last -%},{%- endif -%}\n {%- endfor %}\nfrom {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.ad_reporting.get_date_from_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.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": 1667945774.698671, "supported_languages": null}, "macro.ad_reporting.get_enabled_packages": {"unique_id": "macro.ad_reporting.get_enabled_packages", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "macros/get_enabled_packages.sql", "original_file_path": "macros/get_enabled_packages.sql", "name": "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 '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\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 %}", "resource_type": "macro", "tags": [], "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": 1667945774.6949172, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_group_history_columns": {"unique_id": "macro.apple_search_ads_source.get_ad_group_history_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.610286, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_level_report_columns": {"unique_id": "macro.apple_search_ads_source.get_ad_level_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_ad_level_report_columns.sql", "original_file_path": "macros/get_ad_level_report_columns.sql", "name": "get_ad_level_report_columns", "macro_sql": "{% macro get_ad_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.6145432, "supported_languages": null}, "macro.apple_search_ads_source.get_search_term_report_columns": {"unique_id": "macro.apple_search_ads_source.get_search_term_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_search_term_report_columns.sql", "original_file_path": "macros/get_search_term_report_columns.sql", "name": "get_search_term_report_columns", "macro_sql": "{% macro get_search_term_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bid_amount_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"bid_amount_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"keyword_display_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"keyword_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"search_term_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"search_term_text\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__search_term_passthrough_metrics')) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.622139, "supported_languages": null}, "macro.apple_search_ads_source.get_keyword_report_columns": {"unique_id": "macro.apple_search_ads_source.get_keyword_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "name": "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_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.625823, "supported_languages": null}, "macro.apple_search_ads_source.get_campaign_report_columns": {"unique_id": "macro.apple_search_ads_source.get_campaign_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "name": "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_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.62941, "supported_languages": null}, "macro.apple_search_ads_source.get_campaign_history_columns": {"unique_id": "macro.apple_search_ads_source.get_campaign_history_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.632549, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_history_columns": {"unique_id": "macro.apple_search_ads_source.get_ad_history_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"creation_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"org_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.636091, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_group_report_columns": {"unique_id": "macro.apple_search_ads_source.get_ad_group_report_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "name": "get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.639754, "supported_languages": null}, "macro.apple_search_ads_source.get_organization_columns": {"unique_id": "macro.apple_search_ads_source.get_organization_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "name": "get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_model\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.642272, "supported_languages": null}, "macro.apple_search_ads_source.get_keyword_history_columns": {"unique_id": "macro.apple_search_ads_source.get_keyword_history_columns", "package_name": "apple_search_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/apple_search_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "name": "get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_amount\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"bid_currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"modification_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"text\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.645927, "supported_languages": null}, "macro.pinterest_source.get_ad_group_history_columns": {"unique_id": "macro.pinterest_source.get_ad_group_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.6493561, "supported_languages": null}, "macro.pinterest_source.get_pin_promotion_history_columns": {"unique_id": "macro.pinterest_source.get_pin_promotion_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_pin_promotion_history_columns.sql", "original_file_path": "macros/get_pin_promotion_history_columns.sql", "name": "get_pin_promotion_history_columns", "macro_sql": "{% macro get_pin_promotion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"android_deep_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creative_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"destination_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ios_deep_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_pin_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_removable\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pin_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"review_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"view_tracking_url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.655583, "supported_languages": null}, "macro.pinterest_source.get_keyword_report_columns": {"unique_id": "macro.pinterest_source.get_keyword_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "name": "get_keyword_report_columns", "macro_sql": "{% macro get_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.6611142, "supported_languages": null}, "macro.pinterest_source.get_pin_promotion_report_columns": {"unique_id": "macro.pinterest_source.get_pin_promotion_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_pin_promotion_report_columns.sql", "original_file_path": "macros/get_pin_promotion_report_columns.sql", "name": "get_pin_promotion_report_columns", "macro_sql": "{% macro get_pin_promotion_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.665783, "supported_languages": null}, "macro.pinterest_source.get_campaign_report_columns": {"unique_id": "macro.pinterest_source.get_campaign_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "name": "get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.6705852, "supported_languages": null}, "macro.pinterest_source.get_campaign_history_columns": {"unique_id": "macro.pinterest_source.get_campaign_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.6734872, "supported_languages": null}, "macro.pinterest_source.get_advertiser_history_columns": {"unique_id": "macro.pinterest_source.get_advertiser_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_advertiser_history_columns.sql", "original_file_path": "macros/get_advertiser_history_columns.sql", "name": "get_advertiser_history_columns", "macro_sql": "{% macro get_advertiser_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"billing_profile_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"merchant_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_user_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.6780741, "supported_languages": null}, "macro.pinterest_source.get_ad_group_report_columns": {"unique_id": "macro.pinterest_source.get_ad_group_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "name": "get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.683139, "supported_languages": null}, "macro.pinterest_source.get_keyword_history_columns": {"unique_id": "macro.pinterest_source.get_keyword_history_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "name": "get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"archived\", \"datatype\": \"boolean\"},\n {\"name\": \"bid\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.6875021, "supported_languages": null}, "macro.pinterest_source.get_advertiser_report_columns": {"unique_id": "macro.pinterest_source.get_advertiser_report_columns", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "macros/get_advertiser_report_columns.sql", "original_file_path": "macros/get_advertiser_report_columns.sql", "name": "get_advertiser_report_columns", "macro_sql": "{% macro get_advertiser_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.691414, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_group_history_columns": {"unique_id": "macro.tiktok_ads_source.get_ad_group_history_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "name": "get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"action_days\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"adgroup_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"audience_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"budget\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"category\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"frequency_schedule\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"gender\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"interest_category_v_2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"action_categories\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"age\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"languages\", \"datatype\": dbt_utils.type_string()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.69788, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_group_report_hourly_columns": {"unique_id": "macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_ad_group_report_hourly_columns.sql", "original_file_path": "macros/get_ad_group_report_hourly_columns.sql", "name": "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_utils.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt_utils.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_group_hourly_passthrough_metrics')) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.707173, "supported_languages": null}, "macro.tiktok_ads_source.get_advertiser_columns": {"unique_id": "macro.tiktok_ads_source.get_advertiser_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_advertiser_columns.sql", "original_file_path": "macros/get_advertiser_columns.sql", "name": "get_advertiser_columns", "macro_sql": "{% macro get_advertiser_columns() %}\n\n{% set columns = [\n {\"name\": \"address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"company\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"contacter\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"industry\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"language\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"telephone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.712744, "supported_languages": null}, "macro.tiktok_ads_source.get_campaign_history_columns": {"unique_id": "macro.tiktok_ads_source.get_campaign_history_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"campaign_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"split_test_variable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.715738, "supported_languages": null}, "macro.tiktok_ads_source.get_campaign_report_hourly_columns": {"unique_id": "macro.tiktok_ads_source.get_campaign_report_hourly_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_campaign_report_hourly_columns.sql", "original_file_path": "macros/get_campaign_report_hourly_columns.sql", "name": "get_campaign_report_hourly_columns", "macro_sql": "{% macro get_campaign_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt_utils.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__campaign_hourly_passthrough_metrics')) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.725098, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_history_columns": {"unique_id": "macro.tiktok_ads_source.get_ad_history_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"ad_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"call_to_action\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"impression_tracking_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.7292402, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_report_hourly_columns": {"unique_id": "macro.tiktok_ads_source.get_ad_report_hourly_columns", "package_name": "tiktok_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads_source", "path": "macros/get_ad_report_hourly_columns.sql", "original_file_path": "macros/get_ad_report_hourly_columns.sql", "name": "get_ad_report_hourly_columns", "macro_sql": "{% macro get_ad_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt_utils.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_hourly_passthrough_metrics')) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_numeric", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.7382421, "supported_languages": null}, "macro.facebook_ads_source.get_ad_set_history_columns": {"unique_id": "macro.facebook_ads_source.get_ad_set_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_ad_set_history_columns.sql", "original_file_path": "macros/get_ad_set_history_columns.sql", "name": "get_ad_set_history_columns", "macro_sql": "{% macro get_ad_set_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.742795, "supported_languages": null}, "macro.facebook_ads_source.get_creative_history_columns": {"unique_id": "macro.facebook_ads_source.get_creative_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "name": "get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"page_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_page_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_tags\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"asset_feed_spec_link_urls\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_child_attachments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_caption\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_story_link_data_message\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_app_link_spec_android\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_app_link_spec_ios\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_app_link_spec_ipad\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"template_app_link_spec_iphone\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.749981, "supported_languages": null}, "macro.facebook_ads_source.get_campaign_history_columns": {"unique_id": "macro.facebook_ads_source.get_campaign_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"stop_time\", \"datatype\": dbt_utils.type_timestamp()}, \n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"lifetime_budget\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.754614, "supported_languages": null}, "macro.facebook_ads_source.get_basic_ad_columns": {"unique_id": "macro.facebook_ads_source.get_basic_ad_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_basic_ad_columns.sql", "original_file_path": "macros/get_basic_ad_columns.sql", "name": "get_basic_ad_columns", "macro_sql": "{% macro get_basic_ad_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ad_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"adset_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"inline_link_clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"reach\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"frequency\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('facebook_ads__basic_ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.7590442, "supported_languages": null}, "macro.facebook_ads_source.get_account_history_columns": {"unique_id": "macro.facebook_ads_source.get_account_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"business_country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone_name\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.762769, "supported_languages": null}, "macro.facebook_ads_source.get_ad_history_columns": {"unique_id": "macro.facebook_ads_source.get_ad_history_columns", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"ad_set_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"creative_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.76686, "supported_languages": null}, "macro.snapchat_ads_source.get_campaign_hourly_report_columns": {"unique_id": "macro.snapchat_ads_source.get_campaign_hourly_report_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_campaign_hourly_report_columns.sql", "original_file_path": "macros/get_campaign_hourly_report_columns.sql", "name": "get_campaign_hourly_report_columns", "macro_sql": "{% macro get_campaign_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.774322, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_squad_history_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_squad_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_squad_history_columns.sql", "original_file_path": "macros/get_ad_squad_history_columns.sql", "name": "get_ad_squad_history_columns", "macro_sql": "{% macro get_ad_squad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.777366, "supported_languages": null}, "macro.snapchat_ads_source.get_creative_history_columns": {"unique_id": "macro.snapchat_ads_source.get_creative_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "name": "get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"web_view_url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.781952, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_hourly_report_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_hourly_report_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_hourly_report_columns.sql", "name": "get_ad_hourly_report_columns", "macro_sql": "{% macro get_ad_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"quartile_1\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"quartile_2\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"quartile_3\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"saves\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"swipes\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"video_views\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"view_completion\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.790046, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_squad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_squad_hourly_report_columns.sql", "name": "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_utils.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.797487, "supported_languages": null}, "macro.snapchat_ads_source.get_campaign_history_columns": {"unique_id": "macro.snapchat_ads_source.get_campaign_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.801235, "supported_languages": null}, "macro.snapchat_ads_source.get_creative_url_tag_history_columns": {"unique_id": "macro.snapchat_ads_source.get_creative_url_tag_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_creative_url_tag_history_columns.sql", "original_file_path": "macros/get_creative_url_tag_history_columns.sql", "name": "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_utils.type_string()},\n {\"name\": \"key\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.803613, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_history_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "name": "get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ad_squad_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creative_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.806821, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_account_history_columns": {"unique_id": "macro.snapchat_ads_source.get_ad_account_history_columns", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "macros/get_ad_account_history_columns.sql", "original_file_path": "macros/get_ad_account_history_columns.sql", "name": "get_ad_account_history_columns", "macro_sql": "{% macro get_ad_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"advertiser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8104079, "supported_languages": null}, "macro.twitter_ads_source.get_tweet_columns": {"unique_id": "macro.twitter_ads_source.get_tweet_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/get_tweet_columns.sql", "original_file_path": "macros/get_tweet_columns.sql", "name": "get_tweet_columns", "macro_sql": "{% macro get_tweet_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"full_text\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lang\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8127942, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_keywords_report_columns": {"unique_id": "macro.twitter_ads_source.get_line_item_keywords_report_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/get_line_item_keywords_report_columns.sql", "original_file_path": "macros/get_line_item_keywords_report_columns.sql", "name": "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_utils.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"segment\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.816572, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_report_columns": {"unique_id": "macro.twitter_ads_source.get_line_item_report_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/get_line_item_report_columns.sql", "original_file_path": "macros/get_line_item_report_columns.sql", "name": "get_line_item_report_columns", "macro_sql": "{% macro get_line_item_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.820077, "supported_languages": null}, "macro.twitter_ads_source.get_campaign_report_columns": {"unique_id": "macro.twitter_ads_source.get_campaign_report_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "name": "get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8235478, "supported_languages": null}, "macro.twitter_ads_source.get_account_history_columns": {"unique_id": "macro.twitter_ads_source.get_account_history_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"business_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"business_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"industry_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"salt\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timezone_switch_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.832871, "supported_languages": null}, "macro.twitter_ads_source.get_campaign_history_columns": {"unique_id": "macro.twitter_ads_source.get_campaign_history_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"daily_budget_amount_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"duration_in_days\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"frequency_cap\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"servable\", \"datatype\": \"boolean\"},\n {\"name\": \"standard_delivery\", \"datatype\": \"boolean\"},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8377202, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_history_columns": {"unique_id": "macro.twitter_ads_source.get_line_item_history_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_line_item_history_columns", "macro_sql": "{% macro get_line_item_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_domain\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"advertiser_user_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"automatically_select_bid\", \"datatype\": \"boolean\"},\n {\"name\": \"bid_amount_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"bid_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bid_unit\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"charge_by\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creative_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"optimization\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"primary_web_event_tag\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"product_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"target_cpa_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.844918, "supported_languages": null}, "macro.twitter_ads_source.get_promoted_tweet_history_columns": {"unique_id": "macro.twitter_ads_source.get_promoted_tweet_history_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_promoted_tweet_history_columns", "macro_sql": "{% macro get_promoted_tweet_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"entity_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.847683, "supported_languages": null}, "macro.twitter_ads_source.get_tweet_url_columns": {"unique_id": "macro.twitter_ads_source.get_tweet_url_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_tweet_url_columns", "macro_sql": "{% macro get_tweet_url_columns() %}\n\n{% set columns = [\n {\"name\": \"display_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expanded_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"indices\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.849904, "supported_languages": null}, "macro.twitter_ads_source.get_promoted_tweet_report_columns": {"unique_id": "macro.twitter_ads_source.get_promoted_tweet_report_columns", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "name": "get_promoted_tweet_report_columns", "macro_sql": "{% macro get_promoted_tweet_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"promoted_tweet_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.853176, "supported_languages": null}, "macro.dbt_expectations.type_timestamp": {"unique_id": "macro.dbt_expectations.type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_expectations')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.855159, "supported_languages": null}, "macro.dbt_expectations.default__type_timestamp": {"unique_id": "macro.dbt_expectations.default__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() -%}\n timestamp\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.85553, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_timestamp": {"unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.855793, "supported_languages": null}, "macro.dbt_expectations.postgres__type_timestamp": {"unique_id": "macro.dbt_expectations.postgres__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8560488, "supported_languages": null}, "macro.dbt_expectations.type_datetime": {"unique_id": "macro.dbt_expectations.type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "type_datetime", "macro_sql": "{% macro type_datetime() -%}\n {{ return(adapter.dispatch('type_datetime', 'dbt_expectations')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8565729, "supported_languages": null}, "macro.dbt_expectations.default__type_datetime": {"unique_id": "macro.dbt_expectations.default__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "default__type_datetime", "macro_sql": "{% macro default__type_datetime() -%}\n datetime\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.856833, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_datetime": {"unique_id": "macro.dbt_expectations.snowflake__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "snowflake__type_datetime", "macro_sql": "{% macro snowflake__type_datetime() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.857085, "supported_languages": null}, "macro.dbt_expectations.postgres__type_datetime": {"unique_id": "macro.dbt_expectations.postgres__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "postgres__type_datetime", "macro_sql": "{% macro postgres__type_datetime() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.857342, "supported_languages": null}, "macro.dbt_expectations.regexp_instr": {"unique_id": "macro.dbt_expectations.regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "regexp_instr", "macro_sql": "{% macro regexp_instr(source_value, regexp, position=1, occurrence=1) %}\n\n {{ adapter.dispatch('regexp_instr', 'dbt_expectations')(\n source_value, regexp, position, occurrence\n ) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8593621, "supported_languages": null}, "macro.dbt_expectations.default__regexp_instr": {"unique_id": "macro.dbt_expectations.default__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "default__regexp_instr", "macro_sql": "{% macro default__regexp_instr(source_value, regexp, position, occurrence) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.859982, "supported_languages": null}, "macro.dbt_expectations.redshift__regexp_instr": {"unique_id": "macro.dbt_expectations.redshift__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "redshift__regexp_instr", "macro_sql": "{% macro redshift__regexp_instr(source_value, regexp, position, occurrence) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8605912, "supported_languages": null}, "macro.dbt_expectations.postgres__regexp_instr": {"unique_id": "macro.dbt_expectations.postgres__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "postgres__regexp_instr", "macro_sql": "{% macro postgres__regexp_instr(source_value, regexp, position, occurrence) %}\narray_length((select regexp_matches({{ source_value }}, '{{ regexp }}')), 1)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.861095, "supported_languages": null}, "macro.dbt_expectations.spark__regexp_instr": {"unique_id": "macro.dbt_expectations.spark__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "spark__regexp_instr", "macro_sql": "{% macro spark__regexp_instr(source_value, regexp, position, occurrence) %}\ncase when {{ source_value }} rlike '{{ regexp }}' then 1 else 0 end\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.861591, "supported_languages": null}, "macro.dbt_expectations.log_natural": {"unique_id": "macro.dbt_expectations.log_natural", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "log_natural", "macro_sql": "{% macro log_natural(x) -%}\n {{ adapter.dispatch('log_natural', 'dbt_expectations') (x) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.bigquery__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8627331, "supported_languages": null}, "macro.dbt_expectations.default__log_natural": {"unique_id": "macro.dbt_expectations.default__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "default__log_natural", "macro_sql": "{% macro default__log_natural(x) %}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.863086, "supported_languages": null}, "macro.dbt_expectations.bigquery__log_natural": {"unique_id": "macro.dbt_expectations.bigquery__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "bigquery__log_natural", "macro_sql": "{% macro bigquery__log_natural(x) %}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.863443, "supported_languages": null}, "macro.dbt_expectations.snowflake__log_natural": {"unique_id": "macro.dbt_expectations.snowflake__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "snowflake__log_natural", "macro_sql": "{% macro snowflake__log_natural(x) %}\n\n ln({{ x }})\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8637922, "supported_languages": null}, "macro.dbt_expectations.rand": {"unique_id": "macro.dbt_expectations.rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "rand", "macro_sql": "{% macro rand() -%}\n {{ adapter.dispatch('rand', 'dbt_expectations') () }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.bigquery__rand"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.864961, "supported_languages": null}, "macro.dbt_expectations.default__rand": {"unique_id": "macro.dbt_expectations.default__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "default__rand", "macro_sql": "{% macro default__rand() %}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8652291, "supported_languages": null}, "macro.dbt_expectations.bigquery__rand": {"unique_id": "macro.dbt_expectations.bigquery__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "bigquery__rand", "macro_sql": "{% macro bigquery__rand() %}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.865493, "supported_languages": null}, "macro.dbt_expectations.snowflake__rand": {"unique_id": "macro.dbt_expectations.snowflake__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "snowflake__rand", "macro_sql": "{% macro snowflake__rand(seed) %}\n\n uniform(0::float, 1::float, random())\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.865974, "supported_languages": null}, "macro.dbt_expectations.postgres__rand": {"unique_id": "macro.dbt_expectations.postgres__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "postgres__rand", "macro_sql": "{% macro postgres__rand() %}\n\n random()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.866229, "supported_languages": null}, "macro.dbt_expectations.redshift__rand": {"unique_id": "macro.dbt_expectations.redshift__rand", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "redshift__rand", "macro_sql": "{% macro redshift__rand() %}\n\n random()\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8664808, "supported_languages": null}, "macro.dbt_expectations.median": {"unique_id": "macro.dbt_expectations.median", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/median.sql", "original_file_path": "macros/math/median.sql", "name": "median", "macro_sql": "{% macro median(field) %}\n{{ dbt_expectations.percentile_cont(field, 0.5) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.867351, "supported_languages": null}, "macro.dbt_expectations.percentile_cont": {"unique_id": "macro.dbt_expectations.percentile_cont", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "percentile_cont", "macro_sql": "{% macro percentile_cont(field, quantile, partition=None) %}\n {{ adapter.dispatch('quantile', 'dbt_expectations') (field, quantile, partition) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.bigquery__quantile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.868832, "supported_languages": null}, "macro.dbt_expectations.default__quantile": {"unique_id": "macro.dbt_expectations.default__quantile", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "default__quantile", "macro_sql": "{% macro default__quantile(field, quantile, partition) -%}\n percentile_cont({{ quantile }}) within group (order by {{ field }})\n {%- if partition %}over(partition by {{ partition }}){% endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.869515, "supported_languages": null}, "macro.dbt_expectations.bigquery__quantile": {"unique_id": "macro.dbt_expectations.bigquery__quantile", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "bigquery__quantile", "macro_sql": "{% macro bigquery__quantile(field, quantile, partition) %}\n percentile_cont({{ field }}, {{ quantile }})\n over({%- if partition %}partition by {{ partition }}{% endif -%})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.870246, "supported_languages": null}, "macro.dbt_expectations.test_expression_between": {"unique_id": "macro.dbt_expectations.test_expression_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "name": "test_expression_between", "macro_sql": "{% test expression_between(model,\n expression,\n min_value=None,\n max_value=None,\n group_by_columns=None,\n row_condition=None,\n strictly=False\n ) %}\n\n {{ dbt_expectations.expression_between(model, expression, min_value, max_value, group_by_columns, row_condition, strictly) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8741078, "supported_languages": null}, "macro.dbt_expectations.expression_between": {"unique_id": "macro.dbt_expectations.expression_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "name": "expression_between", "macro_sql": "{% macro expression_between(model,\n expression,\n min_value,\n max_value,\n group_by_columns,\n row_condition,\n strictly\n ) %}\n\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n\n{%- set strict_operator = \"\" if strictly else \"=\" -%}\n\n{% set expression_min_max %}\n( 1=1\n{%- if min_value is not none %} and {{ expression | trim }} >{{ strict_operator }} {{ min_value }}{% endif %}\n{%- if max_value is not none %} and {{ expression | trim }} <{{ strict_operator }} {{ max_value }}{% endif %}\n)\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression_min_max,\n group_by_columns=group_by_columns,\n row_condition=row_condition)\n }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.876488, "supported_languages": null}, "macro.dbt_expectations.test_expression_is_true": {"unique_id": "macro.dbt_expectations.test_expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n\n {{ dbt_expectations.expression_is_true(model, expression, test_condition, group_by_columns, row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8792582, "supported_languages": null}, "macro.dbt_expectations.expression_is_true": {"unique_id": "macro.dbt_expectations.expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "expression_is_true", "macro_sql": "{% macro expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n {{ adapter.dispatch('expression_is_true', 'dbt_expectations') (model, expression, test_condition, group_by_columns, row_condition) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.880194, "supported_languages": null}, "macro.dbt_expectations.default__expression_is_true": {"unique_id": "macro.dbt_expectations.default__expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "default__expression_is_true", "macro_sql": "{% macro default__expression_is_true(model, expression, test_condition, group_by_columns, row_condition) -%}\nwith grouped_expression as (\n select\n {% if group_by_columns %}\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ dbt_expectations.truth_expression(expression) }}\n from {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by_columns %}\n group by\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression {{ test_condition }})\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.882175, "supported_languages": null}, "macro.dbt_expectations.get_select": {"unique_id": "macro.dbt_expectations.get_select", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "get_select", "macro_sql": "{% macro get_select(model, expression, row_condition, group_by) -%}\n {{ adapter.dispatch('get_select', 'dbt_expectations') (model, expression, row_condition, group_by) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8949609, "supported_languages": null}, "macro.dbt_expectations.default__get_select": {"unique_id": "macro.dbt_expectations.default__get_select", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "default__get_select", "macro_sql": "\n\n{%- macro default__get_select(model, expression, row_condition, group_by) %}\n select\n {% if group_by %}\n {% for g in group_by -%}\n {{ g }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ expression }} as expression\n from\n {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by %}\n group by\n {% for g in group_by -%}\n {{ loop.index }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n{% endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8967721, "supported_languages": null}, "macro.dbt_expectations.test_equal_expression": {"unique_id": "macro.dbt_expectations.test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "test_equal_expression", "macro_sql": "{% test equal_expression(model, expression,\n compare_model=None,\n compare_expression=None,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None,\n tolerance=0.0,\n tolerance_percent=None\n ) -%}\n\n {{ adapter.dispatch('test_equal_expression', 'dbt_expectations') (\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.8982668, "supported_languages": null}, "macro.dbt_expectations.default__test_equal_expression": {"unique_id": "macro.dbt_expectations.default__test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "default__test_equal_expression", "macro_sql": "\n\n{%- macro default__test_equal_expression(\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) -%}\n\n {%- set compare_model = model if not compare_model else compare_model -%}\n {%- set compare_expression = expression if not compare_expression else compare_expression -%}\n {%- set compare_row_condition = row_condition if not compare_row_condition else compare_row_condition -%}\n {%- set compare_group_by = group_by if not compare_group_by else compare_group_by -%}\n\n {%- set n_cols = (group_by|length) if group_by else 0 %}\n with a as (\n {{ dbt_expectations.get_select(model, expression, row_condition, group_by) }}\n ),\n b as (\n {{ dbt_expectations.get_select(compare_model, compare_expression, compare_row_condition, compare_group_by) }}\n ),\n final as (\n\n select\n {% for i in range(1, n_cols + 1) -%}\n coalesce(a.col_{{ i }}, b.col_{{ i }}) as col_{{ i }},\n {% endfor %}\n a.expression,\n b.expression as compare_expression,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0)) as expression_difference,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0))/\n nullif(a.expression * 1.0, 0) as expression_difference_percent\n from\n {% if n_cols > 0 %}\n a\n full outer join\n b on\n {% for i in range(1, n_cols + 1) -%}\n a.col_{{ i }} = b.col_{{ i }} {% if not loop.last %}and{% endif %}\n {% endfor -%}\n {% else %}\n a cross join b\n {% endif %}\n )\n -- DEBUG:\n -- select * from final\n select\n *\n from final\n where\n {% if tolerance_percent %}\n expression_difference_percent > {{ tolerance_percent }}\n {% else %}\n expression_difference > {{ tolerance }}\n {% endif %}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.902443, "supported_languages": null}, "macro.dbt_expectations.truth_expression": {"unique_id": "macro.dbt_expectations.truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "name": "truth_expression", "macro_sql": "{% macro truth_expression(expression) %}\n {{ adapter.dispatch('truth_expression', 'dbt_expectations') (expression) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.903656, "supported_languages": null}, "macro.dbt_expectations.default__truth_expression": {"unique_id": "macro.dbt_expectations.default__truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "name": "default__truth_expression", "macro_sql": "{% macro default__truth_expression(expression) %}\n {{ expression }} as expression\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.904114, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "name": "test_expect_column_values_to_match_like_pattern", "macro_sql": "{% test expect_column_values_to_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.906325, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "name": "test_expect_column_values_to_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.909526, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "name": "test_expect_column_values_to_match_regex", "macro_sql": "{% test expect_column_values_to_match_regex(model, column_name,\n regex,\n row_condition=None\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex) }} > 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9115021, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "name": "test_expect_column_value_lengths_to_equal", "macro_sql": "{% test expect_column_value_lengths_to_equal(model, column_name,\n value,\n row_condition=None\n ) %}\n\n{% set expression = dbt_utils.length(column_name) ~ \" = \" ~ value %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9132748, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "name": "test_expect_column_value_lengths_to_be_between", "macro_sql": "{% test expect_column_value_lengths_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\n{{ dbt_utils.length(column_name) }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.915735, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "name": "test_expect_column_values_to_not_match_regex", "macro_sql": "{% test expect_column_values_to_not_match_regex(model, column_name,\n regex,\n row_condition=None\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex) }} = 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9176981, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "name": "test_expect_column_values_to_not_match_regex_list", "macro_sql": "{% test expect_column_values_to_not_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for regex in regex_list %}\n{{ dbt_expectations.regexp_instr(column_name, regex) }} = 0\n{%- if not loop.last %}\n{{ \" and \" if match_on == \"all\" else \" or \"}}\n{% endif -%}\n{% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.920898, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "name": "test_expect_column_values_to_match_regex_list", "macro_sql": "{% test expect_column_values_to_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for regex in regex_list %}\n {{ dbt_expectations.regexp_instr(column_name, regex) }} > 0\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9243689, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "name": "test_expect_column_values_to_not_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.927551, "supported_languages": null}, "macro.dbt_expectations._get_like_pattern_expression": {"unique_id": "macro.dbt_expectations._get_like_pattern_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "original_file_path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "name": "_get_like_pattern_expression", "macro_sql": "{% macro _get_like_pattern_expression(column_name, like_pattern, positive) %}\n{{ column_name }} {{ \"not\" if not positive else \"\" }} like '{{ like_pattern }}'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.928617, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "name": "test_expect_column_values_to_not_match_like_pattern", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.930412, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "name": "test_expect_row_values_to_have_recent_data", "macro_sql": "{% test expect_row_values_to_have_recent_data(model,\n column_name,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_row_values_to_have_recent_data', 'dbt_expectations') (model,\n column_name,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9335601, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "name": "default__test_expect_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_row_values_to_have_recent_data(model, column_name, datepart, interval, row_condition) %}\n{%- set default_start_date = '1970-01-01' -%}\nwith max_recency as (\n\n select max(cast({{ column_name }} as {{ dbt_utils.type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ dbt_utils.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('{{ default_start_date }}' as {{ dbt_utils.type_timestamp() }}))\n <\n cast({{ dbt_utils.dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ dbt_utils.type_timestamp() }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_date.now", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.935508, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "name": "test_expect_table_columns_to_contain_set", "macro_sql": "{%- test expect_table_columns_to_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n input_columns i\n left join\n relation_columns r on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n r.relation_column is null\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.939611, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "name": "test_expect_table_row_count_to_equal_other_table", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table(model, compare_model, factor=1, row_condition=None, compare_row_condition=None) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.94122, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "name": "test_expect_table_columns_to_not_contain_set", "macro_sql": "{%- test expect_table_columns_to_not_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n -- catch any column in input list that is in the list of table columns\n select *\n from\n input_columns i\n inner join\n relation_columns r on r.relation_column = i.input_column\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9447942, "supported_languages": null}, "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "name": "test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% test expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_grouped_row_values_to_have_recent_data', 'dbt_expectations') (model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9502132, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "name": "default__test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) %}\nwith latest_grouped_timestamps as (\n\n select\n {%- for g in group_by %}\n {{ g }},\n {%- endfor %}\n max(1) as join_key,\n max(cast({{ timestamp_column }} as {{ dbt_utils.type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ dbt_utils.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n\n {{ dbt_utils.group_by(group_by | length )}}\n\n),\ntotal_row_counts as (\n\n select\n max(1) as join_key,\n count(*) as row_count\n from\n latest_grouped_timestamps\n\n),\noutdated_grouped_timestamps as (\n\n select *\n from\n latest_grouped_timestamps\n where\n -- are the max timestamps per group older than the specified cutoff?\n latest_timestamp_column <\n cast(\n {{ dbt_utils.dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ dbt_utils.type_timestamp() }}\n )\n\n),\nvalidation_errors as (\n\n select\n r.row_count,\n t.*\n from\n total_row_counts r\n left join\n outdated_grouped_timestamps t\n on r.join_key = t.join_key\n where\n -- fail if either no rows were returned due to row_condition,\n -- or the recency test returned failed rows\n r.row_count = 0\n or\n t.join_key is not null\n\n)\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_date.now", "macro.dbt_utils.group_by", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.952466, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_to_exist": {"unique_id": "macro.dbt_expectations.test_expect_column_to_exist", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "original_file_path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "name": "test_expect_column_to_exist", "macro_sql": "{%- test expect_column_to_exist(model, column_name, column_index=None, transform=\"upper\") -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | map(transform) | join -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n\n {%- set matching_column_index = relation_column_names.index(column_name) if column_name in relation_column_names else -1 %}\n\n {%- if column_index -%}\n\n {%- set column_index_0 = column_index - 1 if column_index > 0 else 0 -%}\n\n {%- set column_index_matches = true if matching_column_index == column_index_0 else false %}\n\n {%- else -%}\n\n {%- set column_index_matches = true -%}\n\n {%- endif %}\n\n with test_data as (\n\n select\n cast('{{ column_name }}' as {{ dbt_utils.type_string() }}) as column_name,\n {{ matching_column_index }} as matching_column_index,\n {{ column_index_matches }} as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.956504, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "name": "test_expect_table_row_count_to_equal", "macro_sql": "{%- test expect_table_row_count_to_equal(model,\n value,\n group_by=None,\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal',\n 'dbt_expectations') (model,\n value,\n group_by,\n row_condition\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.959455, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "name": "default__test_expect_table_row_count_to_equal", "macro_sql": "\n\n\n\n{%- macro default__test_expect_table_row_count_to_equal(model,\n value,\n group_by,\n row_condition\n ) -%}\n{% set expression %}\ncount(*) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.960384, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "name": "test_expect_table_row_count_to_be_between", "macro_sql": "{%- test expect_table_row_count_to_be_between(model,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n{% set expression %}\ncount(*)\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9626281, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "name": "test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table_times_factor(model, compare_model, factor, row_condition=None, compare_row_condition=None) -%}\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model, compare_model,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.963868, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "name": "test_expect_table_columns_to_match_set", "macro_sql": "{%- test expect_table_columns_to_match_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n -- or any table column that is not in the input list\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9676108, "supported_languages": null}, "macro.dbt_expectations._get_column_list": {"unique_id": "macro.dbt_expectations._get_column_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/_get_column_list.sql", "original_file_path": "macros/schema_tests/table_shape/_get_column_list.sql", "name": "_get_column_list", "macro_sql": "{%- macro _get_column_list(model, transform=\"upper\") -%}\n{%- set relation_columns = adapter.get_columns_in_relation(model) -%}\n{%- set relation_column_names = relation_columns | map(attribute=\"name\") | map(transform) | list -%}\n{%- do return(relation_column_names) -%}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.969076, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "name": "test_expect_table_columns_to_match_ordered_list", "macro_sql": "{%- test expect_table_columns_to_match_ordered_list(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select\n {{ loop.index }} as relation_column_idx,\n cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select\n {{ loop.index }} as input_column_idx,\n cast('{{ col_name }}' as {{ dbt_utils.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column and r.relation_column_idx = i.input_column_idx\n where\n -- catch any column in input list that is not in the sequence of table columns\n -- or any table column that is not in the input sequence\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.973654, "supported_languages": null}, "macro.dbt_expectations._list_intersect": {"unique_id": "macro.dbt_expectations._list_intersect", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/_list_intersect.sql", "original_file_path": "macros/schema_tests/table_shape/_list_intersect.sql", "name": "_list_intersect", "macro_sql": "{%- macro _list_intersect(list1, list2) -%}\n{%- set matching_items = [] -%}\n{%- for itm in list1 -%}\n {%- if itm in list2 -%}\n {%- do matching_items.append(itm) -%}\n {%- endif -%}\n{%- endfor -%}\n{%- do return(matching_items) -%}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.975341, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "name": "test_expect_table_column_count_to_equal_other_table", "macro_sql": "{%- test expect_table_column_count_to_equal_other_table(model, compare_model) -%}\n{%- if execute -%}\n{%- set number_columns = (adapter.get_columns_in_relation(model) | length) -%}\n{%- set compare_number_columns = (adapter.get_columns_in_relation(compare_model) | length) -%}\nwith test_data as (\n\n select\n {{ number_columns }} as number_columns,\n {{ compare_number_columns }} as compare_number_columns\n\n)\nselect *\nfrom test_data\nwhere\n number_columns != compare_number_columns\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9770508, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "name": "test_expect_table_column_count_to_equal", "macro_sql": "{%- test expect_table_column_count_to_equal(model, value) -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ value }} as value\n\n)\nselect *\nfrom test_data\nwhere\n number_actual_columns != value\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.978427, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "name": "test_expect_table_column_count_to_be_between", "macro_sql": "{%- test expect_table_column_count_to_be_between(model,\n min_value=None,\n max_value=None\n ) -%}\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\n\n{%- set expression %}\n( 1=1\n{%- if min_value %} and number_actual_columns >= min_value{% endif %}\n{%- if max_value %} and number_actual_columns <= max_value{% endif %}\n)\n{% endset -%}\n\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ min_value if min_value else 0 }} as min_value,\n {{ max_value if max_value else 0 }} as max_value\n\n)\nselect *\nfrom test_data\nwhere\n not {{ expression }}\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.981513, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "name": "test_expect_column_values_to_not_be_in_set", "macro_sql": "{% test expect_column_values_to_not_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt_utils.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that match the set\n select\n v.value_field\n from\n all_values v\n join\n set_values s on v.value_field = s.value_field\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.984312, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "name": "test_expect_column_values_to_be_in_set", "macro_sql": "{% test expect_column_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt_utils.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.9874182, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_increasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_increasing", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "name": "test_expect_column_values_to_be_increasing", "macro_sql": "{% test expect_column_values_to_be_increasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \">\" if strictly else \">=\" -%}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.991897, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_null", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "name": "test_expect_column_values_to_be_null", "macro_sql": "{% test expect_column_values_to_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.993564, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_unique", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "name": "test_expect_column_values_to_be_unique", "macro_sql": "{% test expect_column_values_to_be_unique(model, column_name, row_condition=None) %}\n{{ dbt_expectations.test_expect_compound_columns_to_be_unique(model, [column_name], row_condition=row_condition) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_compound_columns_to_be_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.994626, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "name": "test_expect_column_values_to_be_between", "macro_sql": "{% test expect_column_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ column_name }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945764.996997, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_decreasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_decreasing", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "name": "test_expect_column_values_to_be_decreasing", "macro_sql": "{% test expect_column_values_to_be_decreasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \"<\" if strictly else \"<=\" %}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.000629, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "name": "test_expect_column_values_to_be_in_type_list", "macro_sql": "{%- test expect_column_values_to_be_in_type_list(model, column_name, column_type_list) -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | upper -%}\n {%- set columns_in_relation = adapter.get_columns_in_relation(model) -%}\n {%- set column_type_list = column_type_list| map(\"upper\") | list -%}\n with relation_columns as (\n\n {% for column in columns_in_relation %}\n select\n cast('{{ column.name | upper }}' as {{ dbt_utils.type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ dbt_utils.type_string() }}) as relation_column_type\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '{{ column_name }}'\n and\n relation_column_type not in ('{{ column_type_list | join(\"', '\") }}')\n\n )\n select *\n from test_data\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.004041, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_of_type": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_of_type", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "name": "test_expect_column_values_to_be_of_type", "macro_sql": "{%- test expect_column_values_to_be_of_type(model, column_name, column_type) -%}\n{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(model, column_name, [column_type]) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.005406, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "name": "test_expect_column_values_to_have_consistent_casing", "macro_sql": "{% test expect_column_values_to_have_consistent_casing(model, column_name, display_inconsistent_columns=False) %}\n\nwith test_data as (\n\n select\n distinct {{ column_name }} as distinct_values\n from\n {{ model }}\n\n ),\n {% if display_inconsistent_columns %}\n validation_errors as (\n\n select\n lower(distinct_values) as inconsistent_columns,\n count(distinct_values) as set_count_case_insensitive\n from\n test_data\n group by 1\n having\n count(distinct_values) > 1\n\n )\n select * from validation_errors\n {% else %}\n validation_errors as (\n\n select\n count(1) as set_count,\n count(distinct lower(distinct_values)) as set_count_case_insensitive\n from\n test_data\n\n )\n select *\n from\n validation_errors\n where\n set_count != set_count_case_insensitive\n {% endif %}\n {%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.006974, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_null", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "name": "test_expect_column_values_to_not_be_null", "macro_sql": "{% test expect_column_values_to_not_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is not null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.008561, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_min_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_min_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "name": "test_expect_column_min_to_be_between", "macro_sql": "{% test expect_column_min_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmin({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.011018, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "name": "test_expect_column_unique_value_count_to_be_between", "macro_sql": "{% test expect_column_unique_value_count_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.013545, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "name": "test_expect_column_quantile_values_to_be_between", "macro_sql": "{% test expect_column_quantile_values_to_be_between(model, column_name,\n quantile,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.percentile_cont(column_name, quantile) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.016213, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_median_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_median_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "name": "test_expect_column_median_to_be_between", "macro_sql": "{% test expect_column_median_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.median(column_name) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.median", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.0187688, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "name": "test_expect_column_proportion_of_unique_values_to_be_between", "macro_sql": "{% test expect_column_proportion_of_unique_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})/count({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.021575, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "name": "test_expect_column_distinct_values_to_equal_set", "macro_sql": "{% test expect_column_distinct_values_to_equal_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as column_value\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n all_values v\n full outer join\n unique_set_values s on v.column_value = s.value_field\n where\n v.column_value is null or\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.0246751, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "name": "test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% test expect_column_most_common_value_to_be_in_set(model, column_name,\n value_set,\n top_n,\n quote_values=False,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (model, column_name, value_set, top_n, quote_values, data_type, row_condition) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.029089, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "name": "default__test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% macro default__test_expect_column_most_common_value_to_be_in_set(model, column_name,\n value_set,\n top_n,\n quote_values,\n data_type,\n row_condition\n ) %}\n\nwith value_counts as (\n\n select\n {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %} as value_field,\n count(*) as value_count\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n group by {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %}\n\n),\nvalue_counts_ranked as (\n\n select\n *,\n row_number() over(order by value_count desc) as value_count_rank\n from\n value_counts\n\n),\nvalue_count_top_n as (\n\n select\n value_field\n from\n value_counts_ranked\n where\n value_count_rank = {{ top_n }}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n cast({{ value }} as {{ data_type }})\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n value_field\n from\n value_count_top_n\n where\n value_field not in (select value_field from unique_set_values)\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.032049, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "name": "test_expect_column_distinct_values_to_contain_set", "macro_sql": "{% test expect_column_distinct_values_to_contain_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values in set that are not in the list of values from the model\n select\n s.value_field\n from\n unique_set_values s\n left join\n all_values v on s.value_field = v.value_field\n where\n v.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.034861, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "name": "test_expect_column_distinct_count_to_equal", "macro_sql": "{% test expect_column_distinct_count_to_equal(model,\n column_name,\n value,\n quote_values=False,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.036941, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_sum_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_sum_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "name": "test_expect_column_sum_to_be_between", "macro_sql": "{% test expect_column_sum_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nsum({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.039758, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "name": "test_expect_column_stdev_to_be_between", "macro_sql": "{% test expect_column_stdev_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n {{ adapter.dispatch('test_expect_column_stdev_to_be_between', 'dbt_expectations') (\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_stdev_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.0435688, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "name": "default__test_expect_column_stdev_to_be_between", "macro_sql": "{% macro default__test_expect_column_stdev_to_be_between(\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) %}\n\n{% set expression %}\nstddev({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.044798, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_mean_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_mean_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "name": "test_expect_column_mean_to_be_between", "macro_sql": "{% test expect_column_mean_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\navg({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.047285, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_max_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_max_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "name": "test_expect_column_max_to_be_between", "macro_sql": "{% test expect_column_max_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmax({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.049765, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "name": "test_expect_column_distinct_count_to_be_greater_than", "macro_sql": "{% test expect_column_distinct_count_to_be_greater_than(model,\n column_name,\n value,\n quote_values=False,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) > {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.0519118, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "name": "test_expect_column_distinct_values_to_be_in_set", "macro_sql": "{% test expect_column_distinct_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=False,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n unique_set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.054711, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "name": "test_expect_column_distinct_count_to_equal_other_table", "macro_sql": "{% test expect_column_distinct_count_to_equal_other_table(model,\n compare_model,\n column_name,\n compare_column_name,\n row_condition=None,\n compare_row_condition=None\n ) %}\n{%- set expression -%}\ncount(distinct {{ column_name }})\n{%- endset -%}\n{%- set compare_expression -%}\n{%- if compare_column_name -%}\ncount(distinct {{ compare_column_name }})\n{%- else -%}\n{{ expression }}\n{%- endif -%}\n{%- endset -%}\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.057201, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "original_file_path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "name": "test_expect_row_values_to_have_data_for_every_n_datepart", "macro_sql": "{%- test expect_row_values_to_have_data_for_every_n_datepart(model,\n date_col,\n date_part=\"day\",\n interval=None,\n row_condition=None,\n exclusion_condition=None,\n test_start_date=None,\n test_end_date=None) -%}\n{% if not execute %}\n {{ return('') }}\n{% endif %}\n\n{% if not test_start_date or not test_end_date %}\n {% set sql %}\n\n select\n min({{ date_col }}) as start_{{ date_part }},\n max({{ date_col }}) as end_{{ date_part }}\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n {% endset %}\n\n {%- set dr = run_query(sql) -%}\n {%- set db_start_date = dr.columns[0].values()[0].strftime('%Y-%m-%d') -%}\n {%- set db_end_date = dr.columns[1].values()[0].strftime('%Y-%m-%d') -%}\n\n{% endif %}\n\n{% if not test_start_date %}\n{% set start_date = db_start_date %}\n{% else %}\n{% set start_date = test_start_date %}\n{% endif %}\n\n\n{% if not test_end_date %}\n{% set end_date = db_end_date %}\n{% else %}\n{% set end_date = test_end_date %}\n{% endif %}\nwith base_dates as (\n\n {{ dbt_date.get_base_dates(start_date=start_date, end_date=end_date, datepart=date_part) }}\n {% if interval %}\n {# \n Filter the date spine created above down to the interval granularity using a modulo operation.\n The number of date_parts after the start_date divided by the integer interval will produce no remainder for the desired intervals, \n e.g. for 2-day interval from a starting Jan 1, 2020:\n params: start_date = '2020-01-01', date_part = 'day', interval = 2\n date spine created above: [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-04, 2020-01-05, ...]\n The first parameter to the `mod` function would be the number of days between the start_date and the spine date, i.e. [0, 1, 2, 3, 4 ...]\n The second parameter to the `mod` function would be the integer interval, i.e. 2\n This modulo operation produces the following remainders: [0, 1, 0, 1, 0, ...]\n Filtering the spine only where this remainder == 0 will return a spine with every other day as desired, i.e. [2020-01-01, 2020-01-03, 2020-01-05, ...]\n #}\n where mod(\n cast({{ dbt_utils.datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ dbt_utils.type_int() }}),\n cast({{interval}} as {{ dbt_utils.type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ dbt_utils.date_trunc(date_part, date_col) }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n\n {% else %}\n {# \n Use a modulo operator to determine the number of intervals that a date_col is away from the interval-date spine \n and subtracts that amount to effectively slice each date_col record into its corresponding spine bucket,\n e.g. given a date_col of with records [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-11, 2020-01-12]\n if we want to slice these dates into their 2-day buckets starting Jan 1, 2020 (start_date = '2020-01-01', date_part='day', interval=2),\n the modulo operation described above will produce these remainders: [0, 1, 0, 0, 1]\n subtracting that number of days from the observations will produce records [2020-01-01, 2020-01-01, 2020-01-03, 2020-01-11, 2020-01-11],\n all of which align with records from the interval-date spine\n #}\n {{dbt_utils.dateadd(\n date_part, \n \"mod(\n cast(\" ~ dbt_utils.datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ dbt_utils.type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ dbt_utils.type_int() ~ \" )\n ) * (-1)\", \n \"cast( \" ~ dbt_utils.date_trunc(date_part, date_col) ~ \" as \" ~ dbt_expectations.type_datetime() ~ \")\"\n )}} as date_{{ date_part }},\n \n {% endif %}\n \n count(*) as row_cnt\n from\n {{ model }} f\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n group by\n date_{{date_part}}\n\n),\n\nfinal as (\n\n select\n cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n case when f.date_{{ date_part }} is null then true else false end as is_missing,\n coalesce(f.row_cnt, 0) as row_cnt\n from\n base_dates d\n left join\n model_data f on cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) = f.date_{{ date_part }}\n)\nselect\n *\nfrom final\nwhere row_cnt = 0\n{% if exclusion_condition %}\n and {{ exclusion_condition }}\n{% endif %}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_date.get_base_dates", "macro.dbt_utils.datediff", "macro.dbt_utils.type_int", "macro.dbt_utils.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.0692108, "supported_languages": null}, "macro.dbt_expectations._get_metric_expression": {"unique_id": "macro.dbt_expectations._get_metric_expression", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "_get_metric_expression", "macro_sql": "{%- macro _get_metric_expression(metric_column, take_logs) -%}\n\n{%- if take_logs %}\n{%- set expr = \"nullif(\" ~ metric_column ~ \", 0)\" -%}\ncoalesce({{ dbt_expectations.log_natural(expr) }}, 0)\n{%- else -%}\ncoalesce({{ metric_column }}, 0)\n{%- endif %}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.080938, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n period='day',\n lookback_periods=1,\n trend_periods=7,\n test_periods=14,\n sigma_threshold=3,\n sigma_threshold_upper=None,\n sigma_threshold_lower=None,\n take_diffs=true,\n take_logs=true\n ) -%}\n {{ adapter.dispatch('test_expect_column_values_to_be_within_n_moving_stdevs', 'dbt_expectations') (model,\n column_name,\n date_column_name,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.082737, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "default__test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) %}\n\n{%- set sigma_threshold_upper = sigma_threshold_upper if sigma_threshold_upper else sigma_threshold -%}\n{%- set sigma_threshold_lower = sigma_threshold_lower if sigma_threshold_lower else -1 * sigma_threshold -%}\n\nwith metric_values as (\n\n with grouped_metric_values as (\n\n select\n {{ dbt_utils.date_trunc(period, date_column_name) }} as metric_period,\n sum({{ column_name }}) as agg_metric_value\n from\n {{ model }}\n group by\n 1\n\n )\n {%- if take_diffs %}\n , grouped_metric_values_with_priors as (\n\n select\n *,\n lag(agg_metric_value, {{ lookback_periods }}) over(order by metric_period) as prior_agg_metric_value\n from\n grouped_metric_values d\n\n )\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n -\n {{ dbt_expectations._get_metric_expression(\"prior_agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values_with_priors d\n\n {%- else %}\n\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values\n\n {%- endif %}\n\n),\nmetric_moving_calcs as (\n\n select\n *,\n avg(metric_test_value)\n over(order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_average,\n stddev(metric_test_value)\n over(order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_stddev\n from\n metric_values\n\n),\nmetric_sigma as (\n\n select\n *,\n (metric_test_value - metric_test_rolling_average) as metric_test_delta,\n (metric_test_value - metric_test_rolling_average)/nullif(metric_test_rolling_stddev, 0) as metric_test_sigma\n from\n metric_moving_calcs\n\n)\nselect\n *\nfrom\n metric_sigma\nwhere\n\n metric_period >= cast(\n {{ dbt_utils.dateadd(period, -test_periods, dbt_utils.date_trunc(period, dbt_date.now())) }}\n as {{ dbt_utils.type_timestamp() }})\n and\n metric_period < {{ dbt_utils.date_trunc(period, dbt_date.now()) }}\n and\n\n not (\n metric_test_sigma >= {{ sigma_threshold_lower }} and\n metric_test_sigma <= {{ sigma_threshold_upper }}\n )\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_expectations._get_metric_expression", "macro.dbt_utils.dateadd", "macro.dbt_date.now", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.086468, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "name": "test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by=None,\n sigma_threshold=3\n ) -%}\n {{ adapter.dispatch('test_expect_column_values_to_be_within_n_stdevs', 'dbt_expectations') (model, column_name, group_by, sigma_threshold) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.1222458, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "name": "default__test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by,\n sigma_threshold\n ) %}\nwith metric_values as (\n\n {% if group_by -%}\n select\n {{ group_by }} as metric_date,\n sum({{ column_name }}) as {{ column_name }}\n from\n {{ model }}\n group by\n 1\n {%- else -%}\n select\n {{ column_name }} as {{ column_name }}\n from\n {{ model }}\n {%- endif %}\n\n),\nmetric_values_with_statistics as (\n\n select\n *,\n avg({{ column_name }}) over() as {{ column_name }}_average,\n stddev({{ column_name }}) over() as {{ column_name }}_stddev\n from\n metric_values\n\n),\nmetric_values_z_scores as (\n\n select\n *,\n ({{ column_name }} - {{ column_name }}_average)/{{ column_name }}_stddev as {{ column_name }}_sigma\n from\n metric_values_with_statistics\n\n)\nselect\n *\nfrom\n metric_values_z_scores\nwhere\n abs({{ column_name }}_sigma) > {{ sigma_threshold }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.1240058, "supported_languages": null}, "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "name": "test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% test expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_select_column_values_to_be_unique_within_record', 'dbt_expectations') (model, column_list, quote_columns, ignore_row_if, row_condition) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.12919, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "name": "default__test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% macro default__test_expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns,\n ignore_row_if,\n row_condition\n ) %}\n\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.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_columns ~\"'.'\"\n ) }}\n{% endif %}\n\nwith column_values as (\n\n select\n row_number() over(order by 1) as row_index,\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where 1=1\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n {% if ignore_row_if == \"all_values_are_missing\" %}\n and\n (\n {% for column in columns -%}\n {{ column }} is not null{% if not loop.last %} and {% endif %}\n {%- endfor %}\n )\n {% elif ignore_row_if == \"any_value_is_missing\" %}\n and\n (\n {% for column in columns -%}\n {{ column }} is not null{% if not loop.last %} or {% endif %}\n {%- endfor %}\n )\n {% endif %}\n\n),\nunpivot_columns as (\n\n {% for column in columns %}\n select row_index, '{{ column }}' as column_name, {{ column }} as column_value from column_values\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n\n select\n row_index,\n count(distinct column_value) as column_values\n from unpivot_columns\n group by 1\n having count(distinct column_value) < {{ columns | length }}\n\n)\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.1335208, "supported_languages": null}, "macro.dbt_expectations.test_expect_compound_columns_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_compound_columns_to_be_unique", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "original_file_path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "name": "test_expect_compound_columns_to_be_unique", "macro_sql": "{% test expect_compound_columns_to_be_unique(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) %}\n{% if not column_list %}\n {{ exceptions.raise_compiler_error(\n \"`column_list` must be specified as a list of columns. Got: '\" ~ column_list ~\"'.'\"\n ) }}\n{% endif %}\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for expect_compound_columns_to_be_unique test must be one of [True, False] Got: '\" ~ quote_columns ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set row_condition_ext -%}\n\n{%- if row_condition %}\n {{ row_condition }} and\n{% endif -%}\n\n{%- if ignore_row_if == \"all_values_are_missing\" %}\n (\n {% for column in columns -%}\n {{ column }} is not null{% if not loop.last %} and {% endif %}\n {% endfor %}\n )\n{%- elif ignore_row_if == \"any_value_is_missing\" %}\n (\n {% for column in columns -%}\n {{ column }} is not null{% if not loop.last %} or {% endif %}\n {% endfor %}\n )\n{%- endif -%}\n{%- endset -%}\n\nwith validation_errors as (\n\n select\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\n {% endif %}\n group by\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n having count(*) > 1\n\n)\nselect * from validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.141978, "supported_languages": null}, "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "name": "test_expect_multicolumn_sum_to_equal", "macro_sql": "{% test expect_multicolumn_sum_to_equal(model,\n column_list,\n sum_total,\n group_by=None,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for column in column_list %}\nsum({{ column }}){% if not loop.last %} + {% endif %}\n{% endfor %} = {{ sum_total }}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.1450188, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "name": "test_expect_column_pair_values_to_be_equal", "macro_sql": "{% test expect_column_pair_values_to_be_equal(model,\n column_A,\n column_B,\n row_condition=None\n ) %}\n\n{% set operator = \"=\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.147205, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "name": "test_expect_column_pair_values_A_to_be_greater_than_B", "macro_sql": "{% test expect_column_pair_values_A_to_be_greater_than_B(model,\n column_A,\n column_B,\n or_equal=False,\n row_condition=None\n ) %}\n\n{% set operator = \">=\" if or_equal else \">\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.1495628, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "name": "test_expect_column_pair_values_to_be_in_set", "macro_sql": "{% test expect_column_pair_values_to_be_in_set(model,\n column_A,\n column_B,\n value_pairs_set,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for pair in value_pairs_set %}\n{%- if (pair | length) == 2 %}\n({{ column_A }} = {{ pair[0] }} and {{ column_B }} = {{ pair[1] }}){% if not loop.last %} or {% endif %}\n{% else %}\n{{ exceptions.raise_compiler_error(\n \"`value_pairs_set` argument for expect_column_pair_values_to_be_in_set test cannot have more than 2 item per element.\n Got: '\" ~ pair ~ \"'.'\"\n ) }}\n{% endif %}\n{% endfor %}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1667945765.1539352, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__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"}, "microsoft_ads_source.account_id": {"unique_id": "microsoft_ads_source.account_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The ID of the account."}, "microsoft_ads_source.account_name": {"unique_id": "microsoft_ads_source.account_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "The name of the account."}, "microsoft_ads_source.account_timezone": {"unique_id": "microsoft_ads_source.account_timezone", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_timezone", "block_contents": "The time zone associated with this account."}, "microsoft_ads_source.ad_distribution": {"unique_id": "microsoft_ads_source.ad_distribution", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_distribution", "block_contents": "The distribution medium associated with this record."}, "microsoft_ads_source.ad_id": {"unique_id": "microsoft_ads_source.ad_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_id", "block_contents": "The ID of the corresponding ad."}, "microsoft_ads_source.ad_group_status": {"unique_id": "microsoft_ads_source.ad_group_status", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.ad_name": {"unique_id": "microsoft_ads_source.ad_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.ad_group_id": {"unique_id": "microsoft_ads_source.ad_group_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID of the corresponding ad group."}, "microsoft_ads_source.ad_group_name": {"unique_id": "microsoft_ads_source.ad_group_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_name", "block_contents": "The name of the corresponding ad group."}, "microsoft_ads_source.ad_status": {"unique_id": "microsoft_ads_source.ad_status", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.ad_type": {"unique_id": "microsoft_ads_source.ad_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.bid_match_type": {"unique_id": "microsoft_ads_source.bid_match_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bid_match_type", "block_contents": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "microsoft_ads_source.campaign_id": {"unique_id": "microsoft_ads_source.campaign_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID of the campaign."}, "microsoft_ads_source.campaign_name": {"unique_id": "microsoft_ads_source.campaign_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_name", "block_contents": "The name of the campaign."}, "microsoft_ads_source.campaign_status": {"unique_id": "microsoft_ads_source.campaign_status", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.campaign_timezone": {"unique_id": "microsoft_ads_source.campaign_timezone", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_timezone", "block_contents": "The time zone associated with this campaign."}, "microsoft_ads_source.campaign_type": {"unique_id": "microsoft_ads_source.campaign_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.clicks": {"unique_id": "microsoft_ads_source.clicks", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "The number of clicks that occurred by the grain of the report."}, "microsoft_ads_source.currency_code": {"unique_id": "microsoft_ads_source.currency_code", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_code", "block_contents": "The currency code associated with spend and, if applicable, other metrics associated with currency."}, "microsoft_ads_source.date_day": {"unique_id": "microsoft_ads_source.date_day", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "date_day", "block_contents": "The date of the performance report."}, "microsoft_ads_source.delivered_match_type": {"unique_id": "microsoft_ads_source.delivered_match_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "delivered_match_type", "block_contents": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "microsoft_ads_source.device_os": {"unique_id": "microsoft_ads_source.device_os", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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'."}, "microsoft_ads_source.device_type": {"unique_id": "microsoft_ads_source.device_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "device_type", "block_contents": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'."}, "microsoft_ads_source.end_date": {"unique_id": "microsoft_ads_source.end_date", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "end_date", "block_contents": "The date in which this ad group will no longer run."}, "microsoft_ads_source.final_url": {"unique_id": "microsoft_ads_source.final_url", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "final_url", "block_contents": "The full URL that the ad links to."}, "microsoft_ads_source.impressions": {"unique_id": "microsoft_ads_source.impressions", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "The number of impressions that occurred by the grain of the report."}, "microsoft_ads_source.is_most_recent_record": {"unique_id": "microsoft_ads_source.is_most_recent_record", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "microsoft_ads_source.keyword_id": {"unique_id": "microsoft_ads_source.keyword_id", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_id", "block_contents": "The ID of the keyword."}, "microsoft_ads_source.keyword_name": {"unique_id": "microsoft_ads_source.keyword_name", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_name", "block_contents": "The keyword(s) associated with this record."}, "microsoft_ads_source.keyword_status": {"unique_id": "microsoft_ads_source.keyword_status", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "microsoft_ads_source.language": {"unique_id": "microsoft_ads_source.language", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "language", "block_contents": "The language that the associated ad was viewed in."}, "microsoft_ads_source.match_type": {"unique_id": "microsoft_ads_source.match_type", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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)."}, "microsoft_ads_source.modified_at": {"unique_id": "microsoft_ads_source.modified_at", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "modified_at", "block_contents": "The time each version of the object was last modified, i.e. when that version of the object was 'created'."}, "microsoft_ads_source.network": {"unique_id": "microsoft_ads_source.network", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "network", "block_contents": "The network associated with this record."}, "microsoft_ads_source.search_query": {"unique_id": "microsoft_ads_source.search_query", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "search_query", "block_contents": "The search query string associated with this record."}, "microsoft_ads_source.spend": {"unique_id": "microsoft_ads_source.spend", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "spend", "block_contents": "The amount of spend that occurred by the grain of the report."}, "microsoft_ads_source.start_date": {"unique_id": "microsoft_ads_source.start_date", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "start_date", "block_contents": "The date in which an ad group starts running."}, "microsoft_ads_source.time_zone": {"unique_id": "microsoft_ads_source.time_zone", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "time_zone", "block_contents": "The time zone associated with this record."}, "microsoft_ads_source.top_vs_other": {"unique_id": "microsoft_ads_source.top_vs_other", "package_name": "microsoft_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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)."}, "google_ads_source._fivetran_id": {"unique_id": "google_ads_source._fivetran_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "google_ads_source._fivetran_synced": {"unique_id": "google_ads_source._fivetran_synced", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "google_ads_source.account_descriptive_name": {"unique_id": "google_ads_source.account_descriptive_name", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_descriptive_name", "block_contents": "The descriptive name of the Customer account."}, "google_ads_source.ad_group_id": {"unique_id": "google_ads_source.ad_group_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID of the AdGroup."}, "google_ads_source.ad_group_name": {"unique_id": "google_ads_source.ad_group_name", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_name", "block_contents": "The name of the AdGroup."}, "google_ads_source.ad_group_status": {"unique_id": "google_ads_source.ad_group_status", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_status", "block_contents": "Status of the ad group."}, "google_ads_source.campaign_id": {"unique_id": "google_ads_source.campaign_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID of the Campaign."}, "google_ads_source.ad_id": {"unique_id": "google_ads_source.ad_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_id", "block_contents": "The ID of the Ad."}, "google_ads_source.account_id": {"unique_id": "google_ads_source.account_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The ID of the Account."}, "google_ads_source.ad_status": {"unique_id": "google_ads_source.ad_status", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_status", "block_contents": "Status of the Ad."}, "google_ads_source.campaign_name": {"unique_id": "google_ads_source.campaign_name", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_name", "block_contents": "The name of the Campaign."}, "google_ads_source.campaign_status": {"unique_id": "google_ads_source.campaign_status", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_status", "block_contents": "Status of the Campaign."}, "google_ads_source.clicks": {"unique_id": "google_ads_source.clicks", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "The number of clicks."}, "google_ads_source.cost": {"unique_id": "google_ads_source.cost", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cost", "block_contents": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period."}, "google_ads_source.date": {"unique_id": "google_ads_source.date", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "date", "block_contents": "The date being reported on."}, "google_ads_source.effective_final_url": {"unique_id": "google_ads_source.effective_final_url", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "effective_final_url", "block_contents": "Effective final URL of the impressions."}, "google_ads_source.external_customer_id": {"unique_id": "google_ads_source.external_customer_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "external_customer_id", "block_contents": "The Customer ID."}, "google_ads_source.impressions": {"unique_id": "google_ads_source.impressions", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "Count of how often your ad has appeared on a search results page or website on the Google Network."}, "google_ads_source.criteria_id": {"unique_id": "google_ads_source.criteria_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "criteria_id", "block_contents": "The Criterion ID."}, "google_ads_source.gcl_id": {"unique_id": "google_ads_source.gcl_id", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "gcl_id", "block_contents": "The Google Click ID."}, "google_ads_source.criteria": {"unique_id": "google_ads_source.criteria", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "criteria", "block_contents": "Descriptive string for the Criterion."}, "google_ads_source.criteria_destination_url": {"unique_id": "google_ads_source.criteria_destination_url", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "criteria_destination_url", "block_contents": "Destination URL of the criterion that triggered ads."}, "google_ads_source.criteria_type": {"unique_id": "google_ads_source.criteria_type", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "criteria_type", "block_contents": "The type of the Criterion."}, "google_ads_source.base_url": {"unique_id": "google_ads_source.base_url", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "base_url", "block_contents": "The base URL of the ad, extracted from the `final_urls`."}, "google_ads_source.url_host": {"unique_id": "google_ads_source.url_host", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "url_host", "block_contents": "The URL host of the ad, extracted from the `final_urls`."}, "google_ads_source.url_path": {"unique_id": "google_ads_source.url_path", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "url_path", "block_contents": "The URL path of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_source": {"unique_id": "google_ads_source.utm_source", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_source", "block_contents": "The utm_source parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_medium": {"unique_id": "google_ads_source.utm_medium", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_medium", "block_contents": "The utm_medium parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_campaign": {"unique_id": "google_ads_source.utm_campaign", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_campaign", "block_contents": "The utm_campaign parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_content": {"unique_id": "google_ads_source.utm_content", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_content", "block_contents": "The utm_content parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.utm_term": {"unique_id": "google_ads_source.utm_term", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_term", "block_contents": "The utm_term parameter of the ad, extracted from the `final_urls`."}, "google_ads_source.updated_at": {"unique_id": "google_ads_source.updated_at", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "updated_at", "block_contents": "Timestamp of when the record was last updated in Google Ads."}, "google_ads_source.ad_type": {"unique_id": "google_ads_source.ad_type", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_type", "block_contents": "The type of the ad in Google Ads."}, "google_ads_source.ad_group_type": {"unique_id": "google_ads_source.ad_group_type", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_type", "block_contents": "The type of the ad group in Google Ads."}, "google_ads_source.is_most_recent_record": {"unique_id": "google_ads_source.is_most_recent_record", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "google_ads_source.ad_network_type": {"unique_id": "google_ads_source.ad_network_type", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_network_type", "block_contents": "The Google Ad network type used across the account."}, "google_ads_source.device": {"unique_id": "google_ads_source.device", "package_name": "google_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "device", "block_contents": "Account ad performance per unique device where the ads were served."}, "ad_reporting.account_id": {"unique_id": "ad_reporting.account_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The ID representing the account."}, "ad_reporting.account_name": {"unique_id": "ad_reporting.account_name", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "The name of the account, if present in the source data."}, "ad_reporting.ad_group_id": {"unique_id": "ad_reporting.ad_group_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID representing the ad group, if present in the source data."}, "ad_reporting.ad_group_name": {"unique_id": "ad_reporting.ad_group_name", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_name", "block_contents": "The name of the ad group, if present in the source data."}, "ad_reporting.ad_id": {"unique_id": "ad_reporting.ad_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_id", "block_contents": "The ID representing the ad, if present in the source data."}, "ad_reporting.ad_name": {"unique_id": "ad_reporting.ad_name", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_name", "block_contents": "The name of the ad, if present in the source data."}, "ad_reporting.base_url": {"unique_id": "ad_reporting.base_url", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "base_url", "block_contents": "The base url of the ad."}, "ad_reporting.campaign_id": {"unique_id": "ad_reporting.campaign_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID representing the campaign, if present in the source data."}, "ad_reporting.campaign_name": {"unique_id": "ad_reporting.campaign_name", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_name", "block_contents": "The name of the campaign, if present in the source data."}, "ad_reporting.clicks": {"unique_id": "ad_reporting.clicks", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "The count of clicks."}, "ad_reporting.date_day": {"unique_id": "ad_reporting.date_day", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "date_day", "block_contents": "The date of the report."}, "ad_reporting.impressions": {"unique_id": "ad_reporting.impressions", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "The count of impressions."}, "ad_reporting.keyword_id": {"unique_id": "ad_reporting.keyword_id", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_id", "block_contents": "The ID representing the keyword, if present in the source data."}, "ad_reporting.keyword_match_type": {"unique_id": "ad_reporting.keyword_match_type", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_match_type", "block_contents": "The keyword match type associated with this record."}, "ad_reporting.keyword_text": {"unique_id": "ad_reporting.keyword_text", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_text", "block_contents": "The keyword text."}, "ad_reporting.platform": {"unique_id": "ad_reporting.platform", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "platform", "block_contents": "The ad platform associated with this record."}, "ad_reporting.search_match_type": {"unique_id": "ad_reporting.search_match_type", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "search_match_type", "block_contents": "The search match type associated with this record."}, "ad_reporting.search_query": {"unique_id": "ad_reporting.search_query", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "search_query", "block_contents": "The search query text."}, "ad_reporting.spend": {"unique_id": "ad_reporting.spend", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "spend", "block_contents": "The cost of the ads."}, "ad_reporting.url_host": {"unique_id": "ad_reporting.url_host", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "url_host", "block_contents": "The URL host of the ad."}, "ad_reporting.url_path": {"unique_id": "ad_reporting.url_path", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "url_path", "block_contents": "The URL path of the ad."}, "ad_reporting.utm_campaign": {"unique_id": "ad_reporting.utm_campaign", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_campaign", "block_contents": "The utm_campaign parameter of the ad."}, "ad_reporting.utm_content": {"unique_id": "ad_reporting.utm_content", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_content", "block_contents": "The utm_content parameter of the ad."}, "ad_reporting.utm_medium": {"unique_id": "ad_reporting.utm_medium", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_medium", "block_contents": "The utm_medium parameter of the ad."}, "ad_reporting.utm_source": {"unique_id": "ad_reporting.utm_source", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_source", "block_contents": "The utm_source parameter of the ad."}, "ad_reporting.utm_term": {"unique_id": "ad_reporting.utm_term", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "name": "utm_term", "block_contents": "The utm_term parameter of the ad."}, "pinterest_source._fivetran_synced": {"unique_id": "pinterest_source._fivetran_synced", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "pinterest_source.is_most_recent_record": {"unique_id": "pinterest_source.is_most_recent_record", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "pinterest_source.date_day": {"unique_id": "pinterest_source.date_day", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "date_day", "block_contents": "The performance date of the record."}, "pinterest_source.ad_group_id": {"unique_id": "pinterest_source.ad_group_id", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID of the related Ad group."}, "pinterest_source.pin_promotion_id": {"unique_id": "pinterest_source.pin_promotion_id", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "pin_promotion_id", "block_contents": "The ID of the related Pin promotion."}, "pinterest_source.campaign_id": {"unique_id": "pinterest_source.campaign_id", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID of the related Campaign."}, "pinterest_source.advertiser_id": {"unique_id": "pinterest_source.advertiser_id", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "advertiser_id", "block_contents": "The ID of the related Advertiser."}, "pinterest_source.impressions": {"unique_id": "pinterest_source.impressions", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "The number of paid and earned impressions that occurred on the day of the record."}, "pinterest_source.clicks": {"unique_id": "pinterest_source.clicks", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "The number of paid and earned clicks that occurred on the day of the record."}, "pinterest_source.spend": {"unique_id": "pinterest_source.spend", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "spend", "block_contents": "The amount of spend that occurred on the day of the record."}, "pinterest_source.updated_at": {"unique_id": "pinterest_source.updated_at", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "updated_at", "block_contents": "Timestamp of when a record was last updated."}, "pinterest_source.created_at": {"unique_id": "pinterest_source.created_at", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of when a record was created."}, "pinterest_source.spend_in_micro_dollar": {"unique_id": "pinterest_source.spend_in_micro_dollar", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "spend_in_micro_dollar", "block_contents": "The amount of spend in micro dollars that occurred on the day of the record."}, "pinterest_source.clickthrough_1": {"unique_id": "pinterest_source.clickthrough_1", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clickthrough_1", "block_contents": "The number of paid pin clicks that occurred on the day of the record."}, "pinterest_source.clickthrough_2": {"unique_id": "pinterest_source.clickthrough_2", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clickthrough_2", "block_contents": "The number of earned outbound clicks that occurred on the day of the record."}, "pinterest_source.impression_1": {"unique_id": "pinterest_source.impression_1", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impression_1", "block_contents": "The number of paid pin impressions that occurred on the day of the record."}, "pinterest_source.impression_2": {"unique_id": "pinterest_source.impression_2", "package_name": "pinterest_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impression_2", "block_contents": "The number of earned pin impressions that occurred on the day of the record."}, "facebook_ads_source._fivetran_synced": {"unique_id": "facebook_ads_source._fivetran_synced", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "facebook_ads_source.is_most_recent_record": {"unique_id": "facebook_ads_source.is_most_recent_record", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "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."}, "facebook_ads_source.updated_time": {"unique_id": "facebook_ads_source.updated_time", "package_name": "facebook_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "updated_time", "block_contents": "The timestamp of the last update of a record."}, "snapchat_ads_source._fivetran_synced": {"unique_id": "snapchat_ads_source._fivetran_synced", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "snapchat_ads_source.is_most_recent_record": {"unique_id": "snapchat_ads_source.is_most_recent_record", "package_name": "snapchat_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "twitter_ads_source._fivetran_synced": {"unique_id": "twitter_ads_source._fivetran_synced", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "twitter_ads_source.created_at": {"unique_id": "twitter_ads_source.created_at", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "The timestamp the account was created."}, "twitter_ads_source.updated_at": {"unique_id": "twitter_ads_source.updated_at", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "updated_at", "block_contents": "The timestamp the account was last updated."}, "twitter_ads_source.deleted": {"unique_id": "twitter_ads_source.deleted", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deleted", "block_contents": "Whether the record has been deleted or not."}}, "exposures": {}, "metrics": {"metric.ad_reporting.spend": {"fqn": ["ad_reporting", "spend"], "unique_id": "metric.ad_reporting.spend", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "spend", "description": "Total spend (in currency of individual platforms)", "label": "Ad spend (Fivetran)", "calculation_method": "sum", "timestamp": "date_day", "expression": "spend", "filters": [], "time_grains": ["day", "week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "ad_id", "ad_name", "account_id", "account_name"], "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "refs": [["ad_reporting__ad_report"]], "metrics": [], "created_at": 1667945774.715436}, "metric.ad_reporting.clicks": {"fqn": ["ad_reporting", "clicks"], "unique_id": "metric.ad_reporting.clicks", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "clicks", "description": "Total clicks", "label": "Ad clicks (Fivetran)", "calculation_method": "sum", "timestamp": "date_day", "expression": "clicks", "filters": [], "time_grains": ["day", "week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "ad_id", "ad_name", "account_id", "account_name"], "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "refs": [["ad_reporting__ad_report"]], "metrics": [], "created_at": 1667945774.7250319}, "metric.ad_reporting.impressions": {"fqn": ["ad_reporting", "impressions"], "unique_id": "metric.ad_reporting.impressions", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "impressions", "description": "Total impressions", "label": "Ad impressions (Fivetran)", "calculation_method": "sum", "timestamp": "date_day", "expression": "impressions", "filters": [], "time_grains": ["day", "week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "ad_id", "ad_name", "account_id", "account_name"], "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "refs": [["ad_reporting__ad_report"]], "metrics": [], "created_at": 1667945774.734741}, "metric.ad_reporting.cost_per_click": {"fqn": ["ad_reporting", "cost_per_click"], "unique_id": "metric.ad_reporting.cost_per_click", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "cost_per_click", "description": "The ratio of spend to clicks", "label": "Average ad cost per click (Fivetran)", "calculation_method": "derived", "timestamp": "date_day", "expression": "spend / clicks", "filters": [], "time_grains": ["day", "week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "ad_id", "ad_name", "account_id", "account_name"], "window": null, "model": null, "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.spend", "metric.ad_reporting.clicks"]}, "refs": [], "metrics": [["spend"], ["clicks"]], "created_at": 1667945774.743375}, "metric.ad_reporting.bounce_rate": {"fqn": ["ad_reporting", "bounce_rate"], "unique_id": "metric.ad_reporting.bounce_rate", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "bounce_rate", "description": "Percentage of impressions that did not convert into clicks.", "label": "Average Ad Bounce Rate (Fivetran)", "calculation_method": "derived", "timestamp": "date_day", "expression": "(impressions - clicks) / impressions", "filters": [], "time_grains": ["day", "week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "ad_id", "ad_name", "account_id", "account_name"], "window": null, "model": null, "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.impressions", "metric.ad_reporting.clicks", "metric.ad_reporting.impressions"]}, "refs": [], "metrics": [["impressions"], ["clicks"], ["impressions"]], "created_at": 1667945774.752699}, "metric.ad_reporting.clickthrough_rate": {"fqn": ["ad_reporting", "clickthrough_rate"], "unique_id": "metric.ad_reporting.clickthrough_rate", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "clickthrough_rate", "description": "Percentage of impressions that did convert into clicks.", "label": "Ad Clickthrough Rate (Fivetran)", "calculation_method": "derived", "timestamp": "date_day", "expression": "clicks / impressions", "filters": [], "time_grains": ["day", "week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "ad_id", "ad_name", "account_id", "account_name"], "window": null, "model": null, "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.clicks", "metric.ad_reporting.impressions"]}, "refs": [], "metrics": [["clicks"], ["impressions"]], "created_at": 1667945774.762221}, "metric.ad_reporting.active_ads": {"fqn": ["ad_reporting", "active_ads"], "unique_id": "metric.ad_reporting.active_ads", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "active_ads", "description": "Count of ads witth spend > 0.", "label": "Count of Active Ads (Fivetran)", "calculation_method": "count_distinct", "timestamp": "date_day", "expression": "ad_id", "filters": [{"field": "spend", "operator": ">", "value": "0"}], "time_grains": ["day", "week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "account_id", "account_name"], "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "refs": [["ad_reporting__ad_report"]], "metrics": [], "created_at": 1667945774.7730381}, "metric.ad_reporting.avg_spend_nonzero": {"fqn": ["ad_reporting", "avg_spend_nonzero"], "unique_id": "metric.ad_reporting.avg_spend_nonzero", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "avg_spend_nonzero", "description": "Average ad spend, ignores zero-spend days.", "label": "Average Spend, Ignore Zeros (Fivetran)", "calculation_method": "average", "timestamp": "date_day", "expression": "spend", "filters": [{"field": "spend", "operator": ">", "value": "0"}], "time_grains": ["week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "account_id", "account_name"], "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "refs": [["ad_reporting__ad_report"]], "metrics": [], "created_at": 1667945774.782371}, "metric.ad_reporting.avg_spend": {"fqn": ["ad_reporting", "avg_spend"], "unique_id": "metric.ad_reporting.avg_spend", "package_name": "ad_reporting", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "name": "avg_spend", "description": "Average ad spend, does not ignore zero-spend days.", "label": "Average Spend (Fivetran)", "calculation_method": "average", "timestamp": "date_day", "expression": "spend", "filters": [], "time_grains": ["week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "account_id", "account_name"], "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "resource_type": "metric", "meta": {}, "tags": [], "config": {"enabled": true}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "refs": [["ad_reporting__ad_report"]], "metrics": [], "created_at": 1667945774.790244}}, "selectors": {}, "disabled": {"model.twitter_ads.twitter_ads__keyword_report": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads", "fqn": ["twitter_ads", "twitter_ads__keyword_report"], "unique_id": "model.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.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,\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 left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n left join accounts\n on report.account_id = accounts.account_id\n\n {{ dbt_utils.group_by(n=10) }}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "twitter_ads__keyword_report.sql", "original_file_path": "models/twitter_ads__keyword_report.sql", "name": "twitter_ads__keyword_report", "alias": "twitter_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "1c8888a6aaaf35054f3d6b44a16c85dadcae17843e1ccd87378b0c398733ce58"}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report"], ["stg_twitter_ads__line_item_history"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "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": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the associated account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": false}, "created_at": 1667945773.266159, "config_call_dict": {"enabled": false}}], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report": [{"resource_type": "model", "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.dbt_utils.date_trunc", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_keywords_report"], "unique_id": "model.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 from base\n),\n\nfinal as (\n \n select \n {{ dbt_utils.date_trunc('day', 'date') }} as date_day,\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", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "stg_twitter_ads__line_item_keywords_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_keywords_report.sql", "name": "stg_twitter_ads__line_item_keywords_report", "alias": "stg_twitter_ads__line_item_keywords_report", "checksum": {"name": "sha256", "checksum": "3c634677bfa8faba79f7d6e39b41c305dd09e975dfd7731c433d42a5edec3717"}, "tags": [], "refs": [["stg_twitter_ads__line_item_keywords_report_tmp"], ["stg_twitter_ads__line_item_keywords_report_tmp"]], "sources": [], "metrics": [], "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": {"account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "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, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": false}, "created_at": 1667945776.723331, "config_call_dict": {"enabled": false}}], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1_twitter_ads_source", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_keywords_report_tmp"], "unique_id": "model.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\nselect * \nfrom {{ var('line_item_keywords_report') }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/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", "name": "stg_twitter_ads__line_item_keywords_report_tmp", "alias": "stg_twitter_ads__line_item_keywords_report_tmp", "checksum": {"name": "sha256", "checksum": "114060cd4737b070ccbc5aef04da886811de6b4bec7e6246e7e36df4f115d55e"}, "tags": [], "refs": [], "sources": [["twitter_ads", "line_item_keywords_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": false}, "created_at": 1667945772.324859, "config_call_dict": {"enabled": false}}], "source.twitter_ads_source.twitter_ads.line_item_keywords_report": [{"fqn": ["twitter_ads_source", "twitter_ads", "line_item_keywords_report"], "database": "dbt-package-testing", "schema": "ad_reporting_integration_tests_v1", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_keywords_report", "package_name": "twitter_ads_source", "root_path": "/Users/sheri.nguyen/dbt-packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "name": "line_item_keywords_report", "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_keywords_report_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "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, "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, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "segment": {"name": "segment", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "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, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false}, "patch_path": null, "unrendered_config": {"enabled": false}, "relation_name": "`dbt-package-testing`.`ad_reporting_integration_tests_v1`.`twitter_line_item_keywords_report_data`", "created_at": 1667945777.05038}]}, "parent_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_report_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.twitter_account_report_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.pinterest_ads_pin_promotion_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_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_stats_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.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.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.facebook_ads_campaign_history_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.pinterest_ads_campaign_report_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.pinterest_ads_keyword_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.snapchat_campaign_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.snapchat_ad_squad_hourly_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.pinterest_ads_pin_promotion_report_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.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.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_stats_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.pinterest_ads_advertiser_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_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__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__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__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__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__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_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_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_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__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__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__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.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.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.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "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__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__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__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__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"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": ["source.linkedin_source.linkedin.ad_analytics_by_creative"], "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": ["source.linkedin_source.linkedin.campaign_history"], "model.linkedin_source.stg_linkedin_ads__account_history_tmp": ["source.linkedin_source.linkedin.account_history"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": ["source.linkedin_source.linkedin.campaign_group_history"], "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": ["source.linkedin_source.linkedin.creative_history"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": ["source.linkedin_source.linkedin.ad_analytics_by_campaign"], "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__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__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_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__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__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_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__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_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__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_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.int_ad_reporting__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.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.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.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.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.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.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.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.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.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.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__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__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__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__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_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__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__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_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_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__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__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__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__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__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_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__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__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__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__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__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__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_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_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__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__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__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__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__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__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__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__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_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"], "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_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_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_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__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_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__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__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_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__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__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_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__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__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__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__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__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__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__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_account_id__modified_at.5975327479": ["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_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a": ["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_ad_group_id__modified_at.12004c9de0": ["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_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.8792b4adf4": ["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_ad_id__modified_at.1f05b4ee6f": ["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_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.80e8146841": ["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_campaign_id__modified_at.d2a9279427": ["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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95": ["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_keyword_id__modified_at.e1c525286c": ["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_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.c6f46d202a": ["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_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.03cf031d0c": ["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_advertiser_id__date_day.d298bb3cf9": ["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_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb": ["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_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e": ["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_campaign_id__advertiser_id__date_day.03c4f86b19": ["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.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47": ["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_date_day__campaign_id__placement__account_id.2b09fa5421": ["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_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a": ["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_date_day__account_id__placement.a29cf85a4f": ["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_line_item_id.4982336b04": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword.7f254683d7": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_placement.1cf3231796": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id.66e2c0d578": [], "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_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082": ["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.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff": ["model.twitter_ads.twitter_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_pin_promotion_id.0da711ad6a": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8": ["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_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d": ["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_campaign_id__advertiser_id__date_day.b5752d5279": ["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_advertiser_id__date_day.990badbc11": ["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_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d": ["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_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3": ["model.pinterest.pinterest_ads__pin_promotion_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_ad_id__ad_group_id__date_day.a59b8e007f": ["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_account_id__date_day.c52089771e": ["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_ad_group_id__date_day.7c8e1c1a2f": ["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_ad_id__ad_group_id__date_day.fe37ea1a7b": ["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_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469": ["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_ad_group_id__criterion_id__date_day.214ff3497d": ["model.google_ads.google_ads__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_date_day__creative_id.973a01e410": ["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_date_day__campaign_id.b03f3dc81d": ["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__creative_history_version_tag.d3f8e73227": ["model.linkedin_source.stg_linkedin_ads__creative_history"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66": ["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_version_tag__campaign_id.2d20780793": ["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_last_modified_at__campaign_group_id.e761ddb4da": ["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_account_id__version_tag.9a655993ce": ["model.linkedin_source.stg_linkedin_ads__account_history"], "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_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7": ["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_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738": ["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_date_day__account_id__campaign_id__ad_set_id.3dd4da872f": ["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_date_day__account_id__campaign_id.7cd75107e6": ["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_date_day__account_id.5a94423e40": ["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__fivetran_id__key__type.ba044777d3": ["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_ad_account_id__date_day.da5545b8e6": ["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_ad_id__date_day.68c2c0de57": ["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_campaign_id__date_day.dfc5f7da4e": ["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_ad_squad_id__date_day.027a518f3c": ["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.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be": ["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_account_id__updated_at.19f35742f1": ["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_ad_group_id__updated_at.096e8da5fd": ["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_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7": ["model.google_ads_source.stg_google_ads__ad_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b": ["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_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451": ["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_campaign_id__updated_at.8bf2733e86": ["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_criterion_id__ad_group_id__updated_at.197bbc6816": ["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_ad_group_id__device__ad_network_type__date_day.ed55af6020": ["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_campaign_id__ad_network_type__device__date_day.69600f7d45": ["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_keyword_id__date_day.8f15198e68": ["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_account_id__device__ad_network_type__date_day.3019f8a860": ["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_organization_id__campaign_id__ad_group_id__date_day.19d180bab9": ["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_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1": ["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_organization_id__campaign_id__date_day.647e56213f": ["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_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13": ["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_organization_id__date_day.8bc84fccc3": ["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_search_term_text__date_day.e60fe79ec4": ["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_platform__date_day__account_id.1cadcf1583": ["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_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a": ["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_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55": ["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_platform__date_day__campaign_id__account_id.4b3426da0f": ["model.ad_reporting.ad_reporting__campaign_report"], "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f": ["model.ad_reporting.ad_reporting__keyword_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a": ["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_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf": ["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_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.cd216b1424": ["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_ad_group_id__modified_at.84af14c83b": ["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_ad_group_id__date_day.a0fcc4e33c": ["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_ad_id__modified_at.38599b8cba": ["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_ad_id__date_day__ad_group_id.0d8d23c516": ["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_campaign_id__modified_at.317f970af9": ["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_campaign_id__date_day.bad41b0481": ["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_keyword_id__modified_at.7b06162d24": ["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_keyword_id__date_day.9f0099cff8": ["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_organization_id.8647048f7a": ["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__fivetran_id__date_day.aad2a48344": ["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_ad_group_id___fivetran_synced.1132e1f339": ["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_campaign_id___fivetran_synced.eff7196b87": ["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__fivetran_synced__pin_promotion_id.8e9ab31ea9": ["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_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024": ["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_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e": ["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_updated_at__advertiser_id.94e8f4de4b": ["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_date_day__advertiser_id.e92ce8a9c0": ["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_date_day__campaign_id__advertiser_id.ff47cb8abc": ["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_keyword_id__ad_group_id___fivetran_synced.d122faa877": ["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_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "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.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_ad_group_id__updated_at.cec78c01de": ["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_ad_id__updated_at.66b86b4dd1": ["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_campaign_id__updated_at.72bf07011b": ["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_ad_id__stat_time_hour.e70f8cef6d": ["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_ad_group_id__stat_time_hour.1aeaeb71ad": ["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_campaign_id__stat_time_hour.8e4a1e4b34": ["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_account_id___fivetran_synced.f9b4d28fa2": ["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_ad_id__updated_at.2922c18b58": ["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_ad_set_id__updated_at.0a60ad0fef": ["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_campaign_id__updated_at.7437b392c2": ["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_creative_id___fivetran_synced.69ddc26562": ["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_date_day__ad_id__account_id.bd909529e7": ["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_ad_account_id___fivetran_synced.cd4fd6b0be": ["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_ad_id___fivetran_synced.f84924f13b": ["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_ad_id__date_hour.1a4ef6182a": ["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_ad_squad_id___fivetran_synced.200b225a27": ["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_ad_squad_id__date_hour.774a407e69": ["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_campaign_id___fivetran_synced.31b9fb6777": ["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_campaign_id__date_hour.64293afa9c": ["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_creative_id___fivetran_synced.c6f6c78b99": ["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_creative_id__param_key__updated_at.cc3fa6acbe": ["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_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f": ["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_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3": ["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_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686": ["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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b": ["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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9": ["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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602": ["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_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7": ["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_account_id__updated_timestamp.2725b1ff40": ["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_campaign_id__updated_timestamp.c7054e5b55": ["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_line_item_id__updated_timestamp.b12672e022": ["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_promoted_tweet_id__updated_timestamp.dddc4a21ef": ["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_date_day__promoted_tweet_id__placement.7028206273": ["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_index__tweet_id.eab5b85d74": ["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_date_day__campaign_id__placement.71102d8fdb": ["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_date_day__line_item_id__placement.251e077e6b": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_line_item_id.e4f3fa2e5c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword.02bb211fa0": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_placement.f5bb738cac": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement.c47c820cc3": [], "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.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95": ["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_date_day__account_id.a2dcede91c": ["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_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3": ["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_date_day__campaign_group_id__account_id.f60989a7a6": ["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_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f": ["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.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d": ["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.linkedin_source.linkedin.ad_analytics_by_creative": [], "source.linkedin_source.linkedin.creative_history": [], "source.linkedin_source.linkedin.campaign_history": [], "source.linkedin_source.linkedin.campaign_group_history": [], "source.linkedin_source.linkedin.account_history": [], "source.linkedin_source.linkedin.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.spend": ["model.ad_reporting.ad_reporting__ad_report"], "metric.ad_reporting.clicks": ["model.ad_reporting.ad_reporting__ad_report"], "metric.ad_reporting.impressions": ["model.ad_reporting.ad_reporting__ad_report"], "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", "metric.ad_reporting.impressions"], "metric.ad_reporting.clickthrough_rate": ["metric.ad_reporting.clicks", "metric.ad_reporting.impressions"], "metric.ad_reporting.active_ads": ["model.ad_reporting.ad_reporting__ad_report"], "metric.ad_reporting.avg_spend_nonzero": ["model.ad_reporting.ad_reporting__ad_report"], "metric.ad_reporting.avg_spend": ["model.ad_reporting.ad_reporting__ad_report"]}, "child_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_report_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.twitter_account_report_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.pinterest_ads_pin_promotion_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_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_stats_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.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.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.facebook_ads_campaign_history_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.pinterest_ads_campaign_report_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.pinterest_ads_keyword_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.snapchat_campaign_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.snapchat_ad_squad_hourly_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.pinterest_ads_pin_promotion_report_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.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.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_stats_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.pinterest_ads_advertiser_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_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_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a", "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_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.03cf031d0c", "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_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.c6f46d202a", "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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95", "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_keyword_id__modified_at.e1c525286c", "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_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.8792b4adf4", "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_ad_group_id__modified_at.12004c9de0", "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_ad_id__modified_at.1f05b4ee6f", "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_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.80e8146841", "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_account_id__modified_at.5975327479", "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_campaign_id__modified_at.d2a9279427", "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__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__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__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__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__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_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__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_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__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__campaign_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "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_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e", "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_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47", "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "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_campaign_id__advertiser_id__date_day.03c4f86b19", "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_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb", "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_advertiser_id__date_day.d298bb3cf9", "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_date_day__account_id__placement.a29cf85a4f", "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_date_day__campaign_id__placement__account_id.2b09fa5421", "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_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff", "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_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082", "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_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a", "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.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_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8", "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "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_campaign_id__advertiser_id__date_day.b5752d5279", "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_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d", "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_advertiser_id__date_day.990badbc11", "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_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3", "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_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d", "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.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_ad_group_id__criterion_id__date_day.214ff3497d", "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_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469", "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_ad_id__ad_group_id__date_day.a59b8e007f", "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_ad_id__ad_group_id__date_day.fe37ea1a7b", "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_ad_group_id__date_day.7c8e1c1a2f", "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_account_id__date_day.c52089771e", "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66", "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474", "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227"], "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_version_tag__campaign_id.2d20780793", "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_date_day__campaign_id.b03f3dc81d", "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_last_modified_at__campaign_group_id.e761ddb4da", "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_account_id__version_tag.9a655993ce", "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_date_day__creative_id.973a01e410", "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__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__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__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__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__creative_history"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "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_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7", "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__fivetran_id__key__type.ba044777d3", "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_date_day__account_id__campaign_id.7cd75107e6", "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_date_day__account_id.5a94423e40", "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_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738", "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_date_day__account_id__campaign_id__ad_set_id.3dd4da872f", "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_ad_id__date_day.68c2c0de57", "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_ad_id__date_day.54edc1b2be", "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "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_ad_account_id__date_day.da5545b8e6", "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_ad_squad_id__date_day.027a518f3c", "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_campaign_id__date_day.dfc5f7da4e", "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_ad_group_id__device__ad_network_type__date_day.ed55af6020", "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_account_id__device__ad_network_type__date_day.3019f8a860", "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_ad_group_id__updated_at.096e8da5fd", "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_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b", "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_keyword_id__date_day.8f15198e68", "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_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451", "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_criterion_id__ad_group_id__updated_at.197bbc6816", "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_campaign_id__ad_network_type__device__date_day.69600f7d45", "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_campaign_id__updated_at.8bf2733e86", "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_account_id__updated_at.19f35742f1", "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__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__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__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__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__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_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__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__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__ad_history"], "model.google_ads_source.stg_google_ads__account_history_tmp": ["model.google_ads_source.stg_google_ads__account_history", "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_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1", "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_organization_id__campaign_id__ad_group_id__date_day.19d180bab9", "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_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13", "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_search_term_text__date_day.e60fe79ec4", "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_organization_id__campaign_id__date_day.647e56213f", "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_organization_id__date_day.8bc84fccc3", "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_platform__date_day__campaign_id__account_id.4b3426da0f", "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_platform__date_day__account_id.1cadcf1583", "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_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a", "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_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf", "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb"], "model.ad_reporting.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", "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55", "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_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.cd216b1424", "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_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a", "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f"], "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_campaign_id__modified_at.317f970af9", "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_ad_id__date_day__ad_group_id.0d8d23c516", "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_campaign_id__date_day.bad41b0481", "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_organization_id.8647048f7a", "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_keyword_id__date_day.9f0099cff8", "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_keyword_id__modified_at.7b06162d24", "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__fivetran_id__date_day.aad2a48344", "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_ad_group_id__modified_at.84af14c83b", "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_ad_id__modified_at.38599b8cba", "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_ad_group_id__date_day.a0fcc4e33c", "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__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__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__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_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_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__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__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__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__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.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__fivetran_synced__pin_promotion_id.8e9ab31ea9", "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_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13", "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_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e", "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_campaign_id___fivetran_synced.eff7196b87", "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_date_day__advertiser_id.e92ce8a9c0", "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_updated_at__advertiser_id.94e8f4de4b", "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_date_day__campaign_id__advertiser_id.ff47cb8abc", "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_keyword_id__ad_group_id___fivetran_synced.d122faa877", "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_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024", "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_ad_group_id___fivetran_synced.1132e1f339", "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__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__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__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__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__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__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__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__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__ad_group_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "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_campaign_id__stat_time_hour.8e4a1e4b34", "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_ad_group_id__stat_time_hour.1aeaeb71ad", "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_ad_group_id__updated_at.cec78c01de", "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_ad_id__stat_time_hour.e70f8cef6d", "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.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def", "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66"], "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_ad_id__updated_at.66b86b4dd1", "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_campaign_id__updated_at.72bf07011b", "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_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_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__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__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__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__campaign_history"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser", "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_date_day__ad_id__account_id.bd909529e7", "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_creative_id___fivetran_synced.69ddc26562", "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_campaign_id__updated_at.7437b392c2", "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_account_id___fivetran_synced.f9b4d28fa2", "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_ad_id__updated_at.2922c18b58", "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_ad_set_id__updated_at.0a60ad0fef", "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__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__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__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__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__creative_history"], "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__account_history", "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_ad_squad_id__date_hour.774a407e69", "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_ad_id___fivetran_synced.f84924f13b", "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_ad_squad_id___fivetran_synced.200b225a27", "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_ad_id__date_hour.1a4ef6182a", "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_creative_id___fivetran_synced.c6f6c78b99", "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_creative_id__param_key__updated_at.cc3fa6acbe", "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_ad_account_id___fivetran_synced.cd4fd6b0be", "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_campaign_id__date_hour.64293afa9c", "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_campaign_id___fivetran_synced.31b9fb6777", "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__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_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__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__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__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__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_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__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.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_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686", "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_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3", "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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9", "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_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7", "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_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f", "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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602", "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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b", "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_date_day__campaign_id__placement.71102d8fdb", "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_line_item_id__updated_timestamp.b12672e022", "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_date_day__line_item_id__placement.251e077e6b", "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_campaign_id__updated_timestamp.c7054e5b55", "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_date_day__promoted_tweet_id__placement.7028206273", "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.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd", "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95"], "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_account_id__updated_timestamp.2725b1ff40", "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_index__tweet_id.eab5b85d74", "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_promoted_tweet_id__updated_timestamp.dddc4a21ef", "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_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__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__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__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_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__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__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__account_history"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "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_date_day__campaign_group_id__account_id.f60989a7a6", "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_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f", "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_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3", "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_date_day__account_id.a2dcede91c", "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_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d", "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_account_id__modified_at.5975327479": [], "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_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a": [], "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_ad_group_id__modified_at.12004c9de0": [], "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_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.8792b4adf4": [], "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_ad_id__modified_at.1f05b4ee6f": [], "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_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.80e8146841": [], "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_campaign_id__modified_at.d2a9279427": [], "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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95": [], "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_keyword_id__modified_at.e1c525286c": [], "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_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.c6f46d202a": [], "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_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.03cf031d0c": [], "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_advertiser_id__date_day.d298bb3cf9": [], "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_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb": [], "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_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e": [], "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_campaign_id__advertiser_id__date_day.03c4f86b19": [], "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.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47": [], "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_date_day__campaign_id__placement__account_id.2b09fa5421": [], "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_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a": [], "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_date_day__account_id__placement.a29cf85a4f": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_line_item_id.4982336b04": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword.7f254683d7": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_placement.1cf3231796": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__line_item_id__keyword__placement__account_id__campaign_id.66e2c0d578": [], "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_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082": [], "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.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff": [], "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": [], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8": [], "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_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d": [], "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_campaign_id__advertiser_id__date_day.b5752d5279": [], "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_advertiser_id__date_day.990badbc11": [], "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_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d": [], "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_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3": [], "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_ad_id__ad_group_id__date_day.a59b8e007f": [], "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_account_id__date_day.c52089771e": [], "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_ad_group_id__date_day.7c8e1c1a2f": [], "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_ad_id__ad_group_id__date_day.fe37ea1a7b": [], "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_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469": [], "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_ad_group_id__criterion_id__date_day.214ff3497d": [], "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_date_day__creative_id.973a01e410": [], "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_date_day__campaign_id.b03f3dc81d": [], "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": [], "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66": [], "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_version_tag__campaign_id.2d20780793": [], "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_last_modified_at__campaign_group_id.e761ddb4da": [], "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_account_id__version_tag.9a655993ce": [], "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_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7": [], "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_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738": [], "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_date_day__account_id__campaign_id__ad_set_id.3dd4da872f": [], "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_date_day__account_id__campaign_id.7cd75107e6": [], "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_date_day__account_id.5a94423e40": [], "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__fivetran_id__key__type.ba044777d3": [], "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_ad_account_id__date_day.da5545b8e6": [], "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_ad_id__date_day.68c2c0de57": [], "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_campaign_id__date_day.dfc5f7da4e": [], "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_ad_squad_id__date_day.027a518f3c": [], "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.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be": [], "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_account_id__updated_at.19f35742f1": [], "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_ad_group_id__updated_at.096e8da5fd": [], "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": [], "test.google_ads_source.dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b": [], "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_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451": [], "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_campaign_id__updated_at.8bf2733e86": [], "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_criterion_id__ad_group_id__updated_at.197bbc6816": [], "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_ad_group_id__device__ad_network_type__date_day.ed55af6020": [], "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_campaign_id__ad_network_type__device__date_day.69600f7d45": [], "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_keyword_id__date_day.8f15198e68": [], "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_account_id__device__ad_network_type__date_day.3019f8a860": [], "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_organization_id__campaign_id__ad_group_id__date_day.19d180bab9": [], "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_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1": [], "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_organization_id__campaign_id__date_day.647e56213f": [], "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_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13": [], "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_organization_id__date_day.8bc84fccc3": [], "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_search_term_text__date_day.e60fe79ec4": [], "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_platform__date_day__account_id.1cadcf1583": [], "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_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a": [], "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_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55": [], "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_platform__date_day__campaign_id__account_id.4b3426da0f": [], "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a": [], "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_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf": [], "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_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.cd216b1424": [], "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_ad_group_id__modified_at.84af14c83b": [], "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_ad_group_id__date_day.a0fcc4e33c": [], "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_ad_id__modified_at.38599b8cba": [], "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_ad_id__date_day__ad_group_id.0d8d23c516": [], "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_campaign_id__modified_at.317f970af9": [], "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_campaign_id__date_day.bad41b0481": [], "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_keyword_id__modified_at.7b06162d24": [], "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_keyword_id__date_day.9f0099cff8": [], "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_organization_id.8647048f7a": [], "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__fivetran_id__date_day.aad2a48344": [], "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_ad_group_id___fivetran_synced.1132e1f339": [], "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_campaign_id___fivetran_synced.eff7196b87": [], "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__fivetran_synced__pin_promotion_id.8e9ab31ea9": [], "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_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024": [], "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_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e": [], "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_updated_at__advertiser_id.94e8f4de4b": [], "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_date_day__advertiser_id.e92ce8a9c0": [], "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_date_day__campaign_id__advertiser_id.ff47cb8abc": [], "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_keyword_id__ad_group_id___fivetran_synced.d122faa877": [], "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_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13": [], "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": [], "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_ad_group_id__updated_at.cec78c01de": [], "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_ad_id__updated_at.66b86b4dd1": [], "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_campaign_id__updated_at.72bf07011b": [], "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_ad_id__stat_time_hour.e70f8cef6d": [], "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_ad_group_id__stat_time_hour.1aeaeb71ad": [], "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_campaign_id__stat_time_hour.8e4a1e4b34": [], "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_account_id___fivetran_synced.f9b4d28fa2": [], "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_ad_id__updated_at.2922c18b58": [], "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_ad_set_id__updated_at.0a60ad0fef": [], "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_campaign_id__updated_at.7437b392c2": [], "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_creative_id___fivetran_synced.69ddc26562": [], "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_date_day__ad_id__account_id.bd909529e7": [], "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_ad_account_id___fivetran_synced.cd4fd6b0be": [], "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_ad_id___fivetran_synced.f84924f13b": [], "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_ad_id__date_hour.1a4ef6182a": [], "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_ad_squad_id___fivetran_synced.200b225a27": [], "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_ad_squad_id__date_hour.774a407e69": [], "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_campaign_id___fivetran_synced.31b9fb6777": [], "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_campaign_id__date_hour.64293afa9c": [], "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_creative_id___fivetran_synced.c6f6c78b99": [], "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_creative_id__param_key__updated_at.cc3fa6acbe": [], "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_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f": [], "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_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3": [], "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_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686": [], "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_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b": [], "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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9": [], "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_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602": [], "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_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7": [], "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_account_id__updated_timestamp.2725b1ff40": [], "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_campaign_id__updated_timestamp.c7054e5b55": [], "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_line_item_id__updated_timestamp.b12672e022": [], "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_promoted_tweet_id__updated_timestamp.dddc4a21ef": [], "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_date_day__promoted_tweet_id__placement.7028206273": [], "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_index__tweet_id.eab5b85d74": [], "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_date_day__campaign_id__placement.71102d8fdb": [], "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_date_day__line_item_id__placement.251e077e6b": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_line_item_id.e4f3fa2e5c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword.02bb211fa0": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_placement.f5bb738cac": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__line_item_id__keyword__placement.c47c820cc3": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": [], "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95": [], "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_date_day__account_id.a2dcede91c": [], "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_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3": [], "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_date_day__campaign_group_id__account_id.f60989a7a6": [], "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_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f": [], "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": [], "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d": [], "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.linkedin_source.linkedin.ad_analytics_by_creative": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"], "source.linkedin_source.linkedin.creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp"], "source.linkedin_source.linkedin.campaign_history": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"], "source.linkedin_source.linkedin.campaign_group_history": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"], "source.linkedin_source.linkedin.account_history": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp"], "source.linkedin_source.linkedin.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.spend": ["metric.ad_reporting.cost_per_click"], "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.bounce_rate", "metric.ad_reporting.clickthrough_rate"], "metric.ad_reporting.cost_per_click": [], "metric.ad_reporting.bounce_rate": [], "metric.ad_reporting.clickthrough_rate": [], "metric.ad_reporting.active_ads": [], "metric.ad_reporting.avg_spend_nonzero": [], "metric.ad_reporting.avg_spend": []}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index dfd9ba0..daa50e5 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.2.0", "generated_at": "2022-09-07T05:20:38.344181Z", "invocation_id": "e52f20b1-cafa-4719-95d5-7d7809766aa4", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.040919Z", "completed_at": "2022-09-07T05:20:05.049133Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.049609Z", "completed_at": "2022-09-07T05:20:05.049636Z"}], "thread_id": "Thread-1", "execution_time": 0.009892940521240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.052220Z", "completed_at": "2022-09-07T05:20:05.130953Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.131505Z", "completed_at": "2022-09-07T05:20:05.131519Z"}], "thread_id": "Thread-1", "execution_time": 0.08128833770751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.134113Z", "completed_at": "2022-09-07T05:20:05.140404Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.140862Z", "completed_at": "2022-09-07T05:20:05.140873Z"}], "thread_id": "Thread-1", "execution_time": 0.008517980575561523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.142988Z", "completed_at": "2022-09-07T05:20:05.148745Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.149193Z", "completed_at": "2022-09-07T05:20:05.149202Z"}], "thread_id": "Thread-1", "execution_time": 0.007316112518310547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.151190Z", "completed_at": "2022-09-07T05:20:05.156629Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.157062Z", "completed_at": "2022-09-07T05:20:05.157072Z"}], "thread_id": "Thread-1", "execution_time": 0.0069370269775390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.158929Z", "completed_at": "2022-09-07T05:20:05.182086Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.183151Z", "completed_at": "2022-09-07T05:20:05.183168Z"}], "thread_id": "Thread-1", "execution_time": 0.025443077087402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.185623Z", "completed_at": "2022-09-07T05:20:05.192349Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.192780Z", "completed_at": "2022-09-07T05:20:05.192789Z"}], "thread_id": "Thread-1", "execution_time": 0.00845193862915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.194626Z", "completed_at": "2022-09-07T05:20:05.199300Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.199654Z", "completed_at": "2022-09-07T05:20:05.199662Z"}], "thread_id": "Thread-1", "execution_time": 0.0059661865234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.201280Z", "completed_at": "2022-09-07T05:20:05.205843Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.206197Z", "completed_at": "2022-09-07T05:20:05.206205Z"}], "thread_id": "Thread-1", "execution_time": 0.005809307098388672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.207815Z", "completed_at": "2022-09-07T05:20:05.215760Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.216110Z", "completed_at": "2022-09-07T05:20:05.216118Z"}], "thread_id": "Thread-1", "execution_time": 0.009181976318359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.217731Z", "completed_at": "2022-09-07T05:20:05.222187Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.222539Z", "completed_at": "2022-09-07T05:20:05.222547Z"}], "thread_id": "Thread-1", "execution_time": 0.005950927734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.224135Z", "completed_at": "2022-09-07T05:20:05.228523Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.228846Z", "completed_at": "2022-09-07T05:20:05.228854Z"}], "thread_id": "Thread-1", "execution_time": 0.005561113357543945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.230317Z", "completed_at": "2022-09-07T05:20:05.234333Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.234629Z", "completed_at": "2022-09-07T05:20:05.234635Z"}], "thread_id": "Thread-1", "execution_time": 0.005067110061645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.235950Z", "completed_at": "2022-09-07T05:20:05.240244Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.240523Z", "completed_at": "2022-09-07T05:20:05.240529Z"}], "thread_id": "Thread-1", "execution_time": 0.005279064178466797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.241801Z", "completed_at": "2022-09-07T05:20:05.245531Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.246199Z", "completed_at": "2022-09-07T05:20:05.246206Z"}], "thread_id": "Thread-1", "execution_time": 0.005101919174194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.248073Z", "completed_at": "2022-09-07T05:20:05.251915Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.252200Z", "completed_at": "2022-09-07T05:20:05.252206Z"}], "thread_id": "Thread-1", "execution_time": 0.005477190017700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.253521Z", "completed_at": "2022-09-07T05:20:05.258073Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.258355Z", "completed_at": "2022-09-07T05:20:05.258361Z"}], "thread_id": "Thread-1", "execution_time": 0.0055620670318603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.259656Z", "completed_at": "2022-09-07T05:20:05.263261Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.263545Z", "completed_at": "2022-09-07T05:20:05.263551Z"}], "thread_id": "Thread-1", "execution_time": 0.004595041275024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.264860Z", "completed_at": "2022-09-07T05:20:05.268543Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.269198Z", "completed_at": "2022-09-07T05:20:05.269204Z"}], "thread_id": "Thread-1", "execution_time": 0.005303859710693359, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.270723Z", "completed_at": "2022-09-07T05:20:05.274417Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.274699Z", "completed_at": "2022-09-07T05:20:05.274705Z"}], "thread_id": "Thread-1", "execution_time": 0.004892826080322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.276006Z", "completed_at": "2022-09-07T05:20:05.280756Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.281041Z", "completed_at": "2022-09-07T05:20:05.281047Z"}], "thread_id": "Thread-1", "execution_time": 0.005750179290771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.282670Z", "completed_at": "2022-09-07T05:20:05.286376Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.286659Z", "completed_at": "2022-09-07T05:20:05.286665Z"}], "thread_id": "Thread-1", "execution_time": 0.0046329498291015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.287973Z", "completed_at": "2022-09-07T05:20:05.291673Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.292285Z", "completed_at": "2022-09-07T05:20:05.292292Z"}], "thread_id": "Thread-1", "execution_time": 0.005075931549072266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.293634Z", "completed_at": "2022-09-07T05:20:05.297285Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.297576Z", "completed_at": "2022-09-07T05:20:05.297582Z"}], "thread_id": "Thread-1", "execution_time": 0.004664182662963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.298875Z", "completed_at": "2022-09-07T05:20:05.303302Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.303593Z", "completed_at": "2022-09-07T05:20:05.303599Z"}], "thread_id": "Thread-1", "execution_time": 0.0054361820220947266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.304902Z", "completed_at": "2022-09-07T05:20:05.308753Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.309044Z", "completed_at": "2022-09-07T05:20:05.309051Z"}], "thread_id": "Thread-1", "execution_time": 0.004856109619140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.310348Z", "completed_at": "2022-09-07T05:20:05.313978Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.314271Z", "completed_at": "2022-09-07T05:20:05.314277Z"}], "thread_id": "Thread-1", "execution_time": 0.004637002944946289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.315584Z", "completed_at": "2022-09-07T05:20:05.319271Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.319823Z", "completed_at": "2022-09-07T05:20:05.319848Z"}], "thread_id": "Thread-1", "execution_time": 0.005067110061645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.321252Z", "completed_at": "2022-09-07T05:20:05.325708Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.325992Z", "completed_at": "2022-09-07T05:20:05.325999Z"}], "thread_id": "Thread-1", "execution_time": 0.005467891693115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.327310Z", "completed_at": "2022-09-07T05:20:05.330955Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.331246Z", "completed_at": "2022-09-07T05:20:05.331253Z"}], "thread_id": "Thread-1", "execution_time": 0.004663944244384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.332696Z", "completed_at": "2022-09-07T05:20:05.336499Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.336909Z", "completed_at": "2022-09-07T05:20:05.336915Z"}], "thread_id": "Thread-1", "execution_time": 0.0049211978912353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.338333Z", "completed_at": "2022-09-07T05:20:05.341955Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.342235Z", "completed_at": "2022-09-07T05:20:05.342241Z"}], "thread_id": "Thread-1", "execution_time": 0.0047338008880615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.343543Z", "completed_at": "2022-09-07T05:20:05.348180Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.348461Z", "completed_at": "2022-09-07T05:20:05.348467Z"}], "thread_id": "Thread-1", "execution_time": 0.005641937255859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.349757Z", "completed_at": "2022-09-07T05:20:05.353399Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.353686Z", "completed_at": "2022-09-07T05:20:05.353692Z"}], "thread_id": "Thread-1", "execution_time": 0.004879951477050781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.355456Z", "completed_at": "2022-09-07T05:20:05.359574Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.359858Z", "completed_at": "2022-09-07T05:20:05.359864Z"}], "thread_id": "Thread-1", "execution_time": 0.005259990692138672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.361165Z", "completed_at": "2022-09-07T05:20:05.364857Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.365252Z", "completed_at": "2022-09-07T05:20:05.365258Z"}], "thread_id": "Thread-1", "execution_time": 0.004804134368896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.366564Z", "completed_at": "2022-09-07T05:20:05.371193Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.371487Z", "completed_at": "2022-09-07T05:20:05.371494Z"}], "thread_id": "Thread-1", "execution_time": 0.005650043487548828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.372982Z", "completed_at": "2022-09-07T05:20:05.376622Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.377092Z", "completed_at": "2022-09-07T05:20:05.377099Z"}], "thread_id": "Thread-1", "execution_time": 0.004915952682495117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.378529Z", "completed_at": "2022-09-07T05:20:05.382314Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.382625Z", "completed_at": "2022-09-07T05:20:05.382632Z"}], "thread_id": "Thread-1", "execution_time": 0.0048139095306396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.383935Z", "completed_at": "2022-09-07T05:20:05.387661Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.387952Z", "completed_at": "2022-09-07T05:20:05.387959Z"}], "thread_id": "Thread-1", "execution_time": 0.0047397613525390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.389335Z", "completed_at": "2022-09-07T05:20:05.394245Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.394777Z", "completed_at": "2022-09-07T05:20:05.394788Z"}], "thread_id": "Thread-1", "execution_time": 0.006376028060913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.396990Z", "completed_at": "2022-09-07T05:20:05.404056Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.404458Z", "completed_at": "2022-09-07T05:20:05.404470Z"}], "thread_id": "Thread-1", "execution_time": 0.008502960205078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.406652Z", "completed_at": "2022-09-07T05:20:05.413962Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.414455Z", "completed_at": "2022-09-07T05:20:05.414485Z"}], "thread_id": "Thread-1", "execution_time": 0.008869171142578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.417020Z", "completed_at": "2022-09-07T05:20:05.423376Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.423811Z", "completed_at": "2022-09-07T05:20:05.423823Z"}], "thread_id": "Thread-1", "execution_time": 0.007756710052490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.425985Z", "completed_at": "2022-09-07T05:20:05.432920Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.433334Z", "completed_at": "2022-09-07T05:20:05.433346Z"}], "thread_id": "Thread-1", "execution_time": 0.008460044860839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.435348Z", "completed_at": "2022-09-07T05:20:05.440959Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.441384Z", "completed_at": "2022-09-07T05:20:05.441395Z"}], "thread_id": "Thread-1", "execution_time": 0.0070078372955322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.443343Z", "completed_at": "2022-09-07T05:20:05.448597Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.448983Z", "completed_at": "2022-09-07T05:20:05.448993Z"}], "thread_id": "Thread-1", "execution_time": 0.006668806076049805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.450825Z", "completed_at": "2022-09-07T05:20:05.456063Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.456437Z", "completed_at": "2022-09-07T05:20:05.456446Z"}], "thread_id": "Thread-1", "execution_time": 0.006609201431274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.458192Z", "completed_at": "2022-09-07T05:20:05.464152Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.464522Z", "completed_at": "2022-09-07T05:20:05.464531Z"}], "thread_id": "Thread-1", "execution_time": 0.0072629451751708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.466254Z", "completed_at": "2022-09-07T05:20:05.470890Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.471246Z", "completed_at": "2022-09-07T05:20:05.471254Z"}], "thread_id": "Thread-1", "execution_time": 0.005928993225097656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.472847Z", "completed_at": "2022-09-07T05:20:05.477059Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.477368Z", "completed_at": "2022-09-07T05:20:05.477375Z"}], "thread_id": "Thread-1", "execution_time": 0.005346059799194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.478782Z", "completed_at": "2022-09-07T05:20:05.482779Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.483088Z", "completed_at": "2022-09-07T05:20:05.483094Z"}], "thread_id": "Thread-1", "execution_time": 0.005082845687866211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.484484Z", "completed_at": "2022-09-07T05:20:05.489377Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.489688Z", "completed_at": "2022-09-07T05:20:05.489695Z"}], "thread_id": "Thread-1", "execution_time": 0.005977153778076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.491098Z", "completed_at": "2022-09-07T05:20:05.495031Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.495339Z", "completed_at": "2022-09-07T05:20:05.495346Z"}], "thread_id": "Thread-1", "execution_time": 0.005010843276977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.496751Z", "completed_at": "2022-09-07T05:20:05.500719Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.501026Z", "completed_at": "2022-09-07T05:20:05.501033Z"}], "thread_id": "Thread-1", "execution_time": 0.005052804946899414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.502419Z", "completed_at": "2022-09-07T05:20:05.506404Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.506758Z", "completed_at": "2022-09-07T05:20:05.506791Z"}], "thread_id": "Thread-1", "execution_time": 0.005150794982910156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.508393Z", "completed_at": "2022-09-07T05:20:05.513165Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.513474Z", "completed_at": "2022-09-07T05:20:05.513481Z"}], "thread_id": "Thread-1", "execution_time": 0.005894899368286133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.514874Z", "completed_at": "2022-09-07T05:20:05.518872Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.519183Z", "completed_at": "2022-09-07T05:20:05.519190Z"}], "thread_id": "Thread-1", "execution_time": 0.005082130432128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.520588Z", "completed_at": "2022-09-07T05:20:05.524739Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.525204Z", "completed_at": "2022-09-07T05:20:05.525212Z"}], "thread_id": "Thread-1", "execution_time": 0.0054018497467041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.526718Z", "completed_at": "2022-09-07T05:20:05.531362Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.531877Z", "completed_at": "2022-09-07T05:20:05.531888Z"}], "thread_id": "Thread-1", "execution_time": 0.006106138229370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.533514Z", "completed_at": "2022-09-07T05:20:05.538723Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.539034Z", "completed_at": "2022-09-07T05:20:05.539041Z"}], "thread_id": "Thread-1", "execution_time": 0.006325244903564453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.540503Z", "completed_at": "2022-09-07T05:20:05.544577Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.544896Z", "completed_at": "2022-09-07T05:20:05.544903Z"}], "thread_id": "Thread-1", "execution_time": 0.005193948745727539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.546518Z", "completed_at": "2022-09-07T05:20:05.550537Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.550828Z", "completed_at": "2022-09-07T05:20:05.550835Z"}], "thread_id": "Thread-1", "execution_time": 0.0050830841064453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.552163Z", "completed_at": "2022-09-07T05:20:05.556031Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.556324Z", "completed_at": "2022-09-07T05:20:05.556330Z"}], "thread_id": "Thread-1", "execution_time": 0.004896879196166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.557650Z", "completed_at": "2022-09-07T05:20:05.562296Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.562591Z", "completed_at": "2022-09-07T05:20:05.562598Z"}], "thread_id": "Thread-1", "execution_time": 0.0056819915771484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.563913Z", "completed_at": "2022-09-07T05:20:05.567609Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.567903Z", "completed_at": "2022-09-07T05:20:05.567909Z"}], "thread_id": "Thread-1", "execution_time": 0.004712343215942383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.569240Z", "completed_at": "2022-09-07T05:20:05.573101Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.573501Z", "completed_at": "2022-09-07T05:20:05.573508Z"}], "thread_id": "Thread-1", "execution_time": 0.005149126052856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.575923Z", "completed_at": "2022-09-07T05:20:05.581498Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.581938Z", "completed_at": "2022-09-07T05:20:05.581950Z"}], "thread_id": "Thread-1", "execution_time": 0.007184028625488281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.584514Z", "completed_at": "2022-09-07T05:20:05.593055Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.593496Z", "completed_at": "2022-09-07T05:20:05.593509Z"}], "thread_id": "Thread-1", "execution_time": 0.010474205017089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.595433Z", "completed_at": "2022-09-07T05:20:05.600322Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.600686Z", "completed_at": "2022-09-07T05:20:05.600694Z"}], "thread_id": "Thread-1", "execution_time": 0.006483316421508789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.602330Z", "completed_at": "2022-09-07T05:20:05.606841Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.607195Z", "completed_at": "2022-09-07T05:20:05.607203Z"}], "thread_id": "Thread-1", "execution_time": 0.00575709342956543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.608756Z", "completed_at": "2022-09-07T05:20:05.612863Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.613171Z", "completed_at": "2022-09-07T05:20:05.613177Z"}], "thread_id": "Thread-1", "execution_time": 0.005229949951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.614514Z", "completed_at": "2022-09-07T05:20:05.619125Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.619421Z", "completed_at": "2022-09-07T05:20:05.619427Z"}], "thread_id": "Thread-1", "execution_time": 0.005637168884277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.621961Z", "completed_at": "2022-09-07T05:20:05.625677Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.625969Z", "completed_at": "2022-09-07T05:20:05.625975Z"}], "thread_id": "Thread-1", "execution_time": 0.004992008209228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.627310Z", "completed_at": "2022-09-07T05:20:05.631449Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.631747Z", "completed_at": "2022-09-07T05:20:05.631754Z"}], "thread_id": "Thread-1", "execution_time": 0.005182981491088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.633080Z", "completed_at": "2022-09-07T05:20:05.636850Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.637145Z", "completed_at": "2022-09-07T05:20:05.637152Z"}], "thread_id": "Thread-1", "execution_time": 0.00479578971862793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.638452Z", "completed_at": "2022-09-07T05:20:05.698256Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.698864Z", "completed_at": "2022-09-07T05:20:05.698880Z"}], "thread_id": "Thread-1", "execution_time": 0.061419010162353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.701674Z", "completed_at": "2022-09-07T05:20:05.708798Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.709293Z", "completed_at": "2022-09-07T05:20:05.709306Z"}], "thread_id": "Thread-1", "execution_time": 0.008913993835449219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.711523Z", "completed_at": "2022-09-07T05:20:05.714860Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.715269Z", "completed_at": "2022-09-07T05:20:05.715278Z"}], "thread_id": "Thread-1", "execution_time": 0.005266904830932617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.717257Z", "completed_at": "2022-09-07T05:20:05.720369Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.720782Z", "completed_at": "2022-09-07T05:20:05.720791Z"}], "thread_id": "Thread-1", "execution_time": 0.004499912261962891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.722631Z", "completed_at": "2022-09-07T05:20:05.727190Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.727627Z", "completed_at": "2022-09-07T05:20:05.727639Z"}], "thread_id": "Thread-1", "execution_time": 0.005980968475341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.729592Z", "completed_at": "2022-09-07T05:20:05.732788Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.733195Z", "completed_at": "2022-09-07T05:20:05.733205Z"}], "thread_id": "Thread-1", "execution_time": 0.004581928253173828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.735079Z", "completed_at": "2022-09-07T05:20:05.738110Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.738524Z", "completed_at": "2022-09-07T05:20:05.738533Z"}], "thread_id": "Thread-1", "execution_time": 0.0043871402740478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.740276Z", "completed_at": "2022-09-07T05:20:05.743108Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.743479Z", "completed_at": "2022-09-07T05:20:05.743487Z"}], "thread_id": "Thread-1", "execution_time": 0.004117012023925781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.745080Z", "completed_at": "2022-09-07T05:20:05.748606Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.748938Z", "completed_at": "2022-09-07T05:20:05.748945Z"}], "thread_id": "Thread-1", "execution_time": 0.00466465950012207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.750437Z", "completed_at": "2022-09-07T05:20:05.752883Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.753219Z", "completed_at": "2022-09-07T05:20:05.753226Z"}], "thread_id": "Thread-1", "execution_time": 0.0035829544067382812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.754786Z", "completed_at": "2022-09-07T05:20:05.757222Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.757556Z", "completed_at": "2022-09-07T05:20:05.757563Z"}], "thread_id": "Thread-1", "execution_time": 0.0038521289825439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.759062Z", "completed_at": "2022-09-07T05:20:05.761489Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.761823Z", "completed_at": "2022-09-07T05:20:05.761831Z"}], "thread_id": "Thread-1", "execution_time": 0.003565073013305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.763326Z", "completed_at": "2022-09-07T05:20:05.766782Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.767109Z", "completed_at": "2022-09-07T05:20:05.767116Z"}], "thread_id": "Thread-1", "execution_time": 0.0045888423919677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.768616Z", "completed_at": "2022-09-07T05:20:05.771902Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.772323Z", "completed_at": "2022-09-07T05:20:05.772334Z"}], "thread_id": "Thread-1", "execution_time": 0.004634857177734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.774848Z", "completed_at": "2022-09-07T05:20:05.777849Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.778195Z", "completed_at": "2022-09-07T05:20:05.778205Z"}], "thread_id": "Thread-1", "execution_time": 0.005107879638671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.779850Z", "completed_at": "2022-09-07T05:20:05.782483Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.782818Z", "completed_at": "2022-09-07T05:20:05.782826Z"}], "thread_id": "Thread-1", "execution_time": 0.0037910938262939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.784375Z", "completed_at": "2022-09-07T05:20:05.788010Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.788346Z", "completed_at": "2022-09-07T05:20:05.788353Z"}], "thread_id": "Thread-1", "execution_time": 0.004786014556884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.789863Z", "completed_at": "2022-09-07T05:20:05.792270Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.792599Z", "completed_at": "2022-09-07T05:20:05.792606Z"}], "thread_id": "Thread-1", "execution_time": 0.0035161972045898438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.794006Z", "completed_at": "2022-09-07T05:20:05.796178Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.796463Z", "completed_at": "2022-09-07T05:20:05.796470Z"}], "thread_id": "Thread-1", "execution_time": 0.003159046173095703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.797726Z", "completed_at": "2022-09-07T05:20:05.799773Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.800063Z", "completed_at": "2022-09-07T05:20:05.800069Z"}], "thread_id": "Thread-1", "execution_time": 0.0030031204223632812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.801311Z", "completed_at": "2022-09-07T05:20:05.804198Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.804478Z", "completed_at": "2022-09-07T05:20:05.804484Z"}], "thread_id": "Thread-1", "execution_time": 0.003832101821899414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.805724Z", "completed_at": "2022-09-07T05:20:05.807761Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.808037Z", "completed_at": "2022-09-07T05:20:05.808043Z"}], "thread_id": "Thread-1", "execution_time": 0.0029730796813964844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.809281Z", "completed_at": "2022-09-07T05:20:05.811324Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.811606Z", "completed_at": "2022-09-07T05:20:05.811612Z"}], "thread_id": "Thread-1", "execution_time": 0.0029900074005126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.812847Z", "completed_at": "2022-09-07T05:20:05.814910Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.815190Z", "completed_at": "2022-09-07T05:20:05.815196Z"}], "thread_id": "Thread-1", "execution_time": 0.0030031204223632812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.816436Z", "completed_at": "2022-09-07T05:20:05.819337Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.819615Z", "completed_at": "2022-09-07T05:20:05.819622Z"}], "thread_id": "Thread-1", "execution_time": 0.004055023193359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.820858Z", "completed_at": "2022-09-07T05:20:05.822890Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.823168Z", "completed_at": "2022-09-07T05:20:05.823175Z"}], "thread_id": "Thread-1", "execution_time": 0.002969026565551758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.824408Z", "completed_at": "2022-09-07T05:20:05.826459Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.826738Z", "completed_at": "2022-09-07T05:20:05.826744Z"}], "thread_id": "Thread-1", "execution_time": 0.002994060516357422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.827990Z", "completed_at": "2022-09-07T05:20:05.830066Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.830344Z", "completed_at": "2022-09-07T05:20:05.830350Z"}], "thread_id": "Thread-1", "execution_time": 0.0030138492584228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.831575Z", "completed_at": "2022-09-07T05:20:05.834445Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.834728Z", "completed_at": "2022-09-07T05:20:05.834734Z"}], "thread_id": "Thread-1", "execution_time": 0.0038750171661376953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.836016Z", "completed_at": "2022-09-07T05:20:05.837983Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.838256Z", "completed_at": "2022-09-07T05:20:05.838262Z"}], "thread_id": "Thread-1", "execution_time": 0.0029418468475341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.839540Z", "completed_at": "2022-09-07T05:20:05.841860Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.842138Z", "completed_at": "2022-09-07T05:20:05.842144Z"}], "thread_id": "Thread-1", "execution_time": 0.003320932388305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.843542Z", "completed_at": "2022-09-07T05:20:05.846043Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.846333Z", "completed_at": "2022-09-07T05:20:05.846341Z"}], "thread_id": "Thread-1", "execution_time": 0.0034978389739990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.847818Z", "completed_at": "2022-09-07T05:20:05.851163Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.851438Z", "completed_at": "2022-09-07T05:20:05.851444Z"}], "thread_id": "Thread-1", "execution_time": 0.004385948181152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.852774Z", "completed_at": "2022-09-07T05:20:05.854811Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.855083Z", "completed_at": "2022-09-07T05:20:05.855089Z"}], "thread_id": "Thread-1", "execution_time": 0.0032639503479003906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.856371Z", "completed_at": "2022-09-07T05:20:05.858354Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.858625Z", "completed_at": "2022-09-07T05:20:05.858631Z"}], "thread_id": "Thread-1", "execution_time": 0.0031909942626953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.859870Z", "completed_at": "2022-09-07T05:20:05.861906Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.862177Z", "completed_at": "2022-09-07T05:20:05.862183Z"}], "thread_id": "Thread-1", "execution_time": 0.002958059310913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.863443Z", "completed_at": "2022-09-07T05:20:05.866246Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.866517Z", "completed_at": "2022-09-07T05:20:05.866523Z"}], "thread_id": "Thread-1", "execution_time": 0.003973960876464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.867794Z", "completed_at": "2022-09-07T05:20:05.869841Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.870118Z", "completed_at": "2022-09-07T05:20:05.870125Z"}], "thread_id": "Thread-1", "execution_time": 0.0031881332397460938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.871371Z", "completed_at": "2022-09-07T05:20:05.873406Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.873680Z", "completed_at": "2022-09-07T05:20:05.873687Z"}], "thread_id": "Thread-1", "execution_time": 0.003181934356689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.874908Z", "completed_at": "2022-09-07T05:20:05.876941Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.877214Z", "completed_at": "2022-09-07T05:20:05.877221Z"}], "thread_id": "Thread-1", "execution_time": 0.0029768943786621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.878633Z", "completed_at": "2022-09-07T05:20:05.881497Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.881774Z", "completed_at": "2022-09-07T05:20:05.881781Z"}], "thread_id": "Thread-1", "execution_time": 0.003812074661254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.883039Z", "completed_at": "2022-09-07T05:20:05.885144Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.885421Z", "completed_at": "2022-09-07T05:20:05.885427Z"}], "thread_id": "Thread-1", "execution_time": 0.0030493736267089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.886689Z", "completed_at": "2022-09-07T05:20:05.888746Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.889017Z", "completed_at": "2022-09-07T05:20:05.889024Z"}], "thread_id": "Thread-1", "execution_time": 0.0029861927032470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.890250Z", "completed_at": "2022-09-07T05:20:05.892280Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.892564Z", "completed_at": "2022-09-07T05:20:05.892571Z"}], "thread_id": "Thread-1", "execution_time": 0.0029850006103515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.893816Z", "completed_at": "2022-09-07T05:20:05.897017Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.897369Z", "completed_at": "2022-09-07T05:20:05.897376Z"}], "thread_id": "Thread-1", "execution_time": 0.004241943359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.899322Z", "completed_at": "2022-09-07T05:20:05.902595Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.902965Z", "completed_at": "2022-09-07T05:20:05.902974Z"}], "thread_id": "Thread-1", "execution_time": 0.005218029022216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.904822Z", "completed_at": "2022-09-07T05:20:05.907819Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.908094Z", "completed_at": "2022-09-07T05:20:05.908102Z"}], "thread_id": "Thread-1", "execution_time": 0.004548788070678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.909411Z", "completed_at": "2022-09-07T05:20:05.911560Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.911833Z", "completed_at": "2022-09-07T05:20:05.911839Z"}], "thread_id": "Thread-1", "execution_time": 0.0033469200134277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.913096Z", "completed_at": "2022-09-07T05:20:05.915978Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.916250Z", "completed_at": "2022-09-07T05:20:05.916256Z"}], "thread_id": "Thread-1", "execution_time": 0.0038208961486816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.917476Z", "completed_at": "2022-09-07T05:20:05.919506Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.919780Z", "completed_at": "2022-09-07T05:20:05.919787Z"}], "thread_id": "Thread-1", "execution_time": 0.002964019775390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.921017Z", "completed_at": "2022-09-07T05:20:05.923036Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.923304Z", "completed_at": "2022-09-07T05:20:05.923310Z"}], "thread_id": "Thread-1", "execution_time": 0.0029370784759521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.924517Z", "completed_at": "2022-09-07T05:20:05.926558Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.926828Z", "completed_at": "2022-09-07T05:20:05.926834Z"}], "thread_id": "Thread-1", "execution_time": 0.0029630661010742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.928052Z", "completed_at": "2022-09-07T05:20:05.930928Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.931214Z", "completed_at": "2022-09-07T05:20:05.931220Z"}], "thread_id": "Thread-1", "execution_time": 0.0038259029388427734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.932436Z", "completed_at": "2022-09-07T05:20:05.934475Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.934747Z", "completed_at": "2022-09-07T05:20:05.934753Z"}], "thread_id": "Thread-1", "execution_time": 0.0029621124267578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.935972Z", "completed_at": "2022-09-07T05:20:05.938012Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.938286Z", "completed_at": "2022-09-07T05:20:05.938292Z"}], "thread_id": "Thread-1", "execution_time": 0.002971172332763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.939514Z", "completed_at": "2022-09-07T05:20:05.941572Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.941845Z", "completed_at": "2022-09-07T05:20:05.941851Z"}], "thread_id": "Thread-1", "execution_time": 0.0031859874725341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.943070Z", "completed_at": "2022-09-07T05:20:05.945924Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.946200Z", "completed_at": "2022-09-07T05:20:05.946206Z"}], "thread_id": "Thread-1", "execution_time": 0.0037932395935058594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.947418Z", "completed_at": "2022-09-07T05:20:05.949456Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.949731Z", "completed_at": "2022-09-07T05:20:05.949737Z"}], "thread_id": "Thread-1", "execution_time": 0.0029671192169189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.950959Z", "completed_at": "2022-09-07T05:20:05.952985Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.953263Z", "completed_at": "2022-09-07T05:20:05.953269Z"}], "thread_id": "Thread-1", "execution_time": 0.003016948699951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.954543Z", "completed_at": "2022-09-07T05:20:05.956756Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.957028Z", "completed_at": "2022-09-07T05:20:05.957034Z"}], "thread_id": "Thread-1", "execution_time": 0.0031392574310302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.958260Z", "completed_at": "2022-09-07T05:20:05.961117Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.961390Z", "completed_at": "2022-09-07T05:20:05.961396Z"}], "thread_id": "Thread-1", "execution_time": 0.003808259963989258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.962611Z", "completed_at": "2022-09-07T05:20:05.964801Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.965073Z", "completed_at": "2022-09-07T05:20:05.965079Z"}], "thread_id": "Thread-1", "execution_time": 0.003114938735961914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.966298Z", "completed_at": "2022-09-07T05:20:05.968365Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.968639Z", "completed_at": "2022-09-07T05:20:05.968645Z"}], "thread_id": "Thread-1", "execution_time": 0.0030019283294677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.969859Z", "completed_at": "2022-09-07T05:20:05.971908Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.972228Z", "completed_at": "2022-09-07T05:20:05.972238Z"}], "thread_id": "Thread-1", "execution_time": 0.0032160282135009766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.973739Z", "completed_at": "2022-09-07T05:20:05.976095Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.976384Z", "completed_at": "2022-09-07T05:20:05.976392Z"}], "thread_id": "Thread-1", "execution_time": 0.003343820571899414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.978928Z", "completed_at": "2022-09-07T05:20:05.981341Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.981612Z", "completed_at": "2022-09-07T05:20:05.981619Z"}], "thread_id": "Thread-1", "execution_time": 0.00448298454284668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.982887Z", "completed_at": "2022-09-07T05:20:05.985006Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.985282Z", "completed_at": "2022-09-07T05:20:05.985288Z"}], "thread_id": "Thread-1", "execution_time": 0.0030570030212402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.986507Z", "completed_at": "2022-09-07T05:20:05.988531Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.988803Z", "completed_at": "2022-09-07T05:20:05.988809Z"}], "thread_id": "Thread-1", "execution_time": 0.002949237823486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.990016Z", "completed_at": "2022-09-07T05:20:05.992450Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:05.992915Z", "completed_at": "2022-09-07T05:20:05.992922Z"}], "thread_id": "Thread-1", "execution_time": 0.0038290023803710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:05.994585Z", "completed_at": "2022-09-07T05:20:05.999775Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.000156Z", "completed_at": "2022-09-07T05:20:06.000165Z"}], "thread_id": "Thread-1", "execution_time": 0.006723165512084961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.002015Z", "completed_at": "2022-09-07T05:20:06.004342Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.004667Z", "completed_at": "2022-09-07T05:20:06.004674Z"}], "thread_id": "Thread-1", "execution_time": 0.0034112930297851562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.006147Z", "completed_at": "2022-09-07T05:20:06.008890Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.009182Z", "completed_at": "2022-09-07T05:20:06.009189Z"}], "thread_id": "Thread-1", "execution_time": 0.003699779510498047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.010490Z", "completed_at": "2022-09-07T05:20:06.012731Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.013006Z", "completed_at": "2022-09-07T05:20:06.013013Z"}], "thread_id": "Thread-1", "execution_time": 0.003178834915161133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.014433Z", "completed_at": "2022-09-07T05:20:06.018717Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.019100Z", "completed_at": "2022-09-07T05:20:06.019110Z"}], "thread_id": "Thread-1", "execution_time": 0.005536079406738281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.020751Z", "completed_at": "2022-09-07T05:20:06.023843Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.024130Z", "completed_at": "2022-09-07T05:20:06.024138Z"}], "thread_id": "Thread-1", "execution_time": 0.004168987274169922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.025687Z", "completed_at": "2022-09-07T05:20:06.028743Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.029109Z", "completed_at": "2022-09-07T05:20:06.029118Z"}], "thread_id": "Thread-1", "execution_time": 0.004313230514526367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.030759Z", "completed_at": "2022-09-07T05:20:06.033865Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.034212Z", "completed_at": "2022-09-07T05:20:06.034220Z"}], "thread_id": "Thread-1", "execution_time": 0.004334926605224609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.035989Z", "completed_at": "2022-09-07T05:20:06.039744Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.040085Z", "completed_at": "2022-09-07T05:20:06.040094Z"}], "thread_id": "Thread-1", "execution_time": 0.004954099655151367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.041677Z", "completed_at": "2022-09-07T05:20:06.044321Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.044669Z", "completed_at": "2022-09-07T05:20:06.044677Z"}], "thread_id": "Thread-1", "execution_time": 0.003815889358520508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.046270Z", "completed_at": "2022-09-07T05:20:06.048832Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.049179Z", "completed_at": "2022-09-07T05:20:06.049187Z"}], "thread_id": "Thread-1", "execution_time": 0.0037381649017333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.050713Z", "completed_at": "2022-09-07T05:20:06.053307Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.053648Z", "completed_at": "2022-09-07T05:20:06.053655Z"}], "thread_id": "Thread-1", "execution_time": 0.0037310123443603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.055054Z", "completed_at": "2022-09-07T05:20:06.058016Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.058306Z", "completed_at": "2022-09-07T05:20:06.058313Z"}], "thread_id": "Thread-1", "execution_time": 0.003965139389038086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.059587Z", "completed_at": "2022-09-07T05:20:06.476217Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.476584Z", "completed_at": "2022-09-07T05:20:06.476595Z"}], "thread_id": "Thread-1", "execution_time": 0.41776204109191895, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.478388Z", "completed_at": "2022-09-07T05:20:06.872455Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:06.872940Z", "completed_at": "2022-09-07T05:20:06.872955Z"}], "thread_id": "Thread-1", "execution_time": 0.3956153392791748, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:06.875199Z", "completed_at": "2022-09-07T05:20:07.209471Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:07.209915Z", "completed_at": "2022-09-07T05:20:07.209929Z"}], "thread_id": "Thread-1", "execution_time": 0.3362107276916504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:07.211914Z", "completed_at": "2022-09-07T05:20:07.568599Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:07.569947Z", "completed_at": "2022-09-07T05:20:07.569962Z"}], "thread_id": "Thread-1", "execution_time": 0.3594231605529785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:07.592304Z", "completed_at": "2022-09-07T05:20:07.996579Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:07.997046Z", "completed_at": "2022-09-07T05:20:07.997060Z"}], "thread_id": "Thread-1", "execution_time": 0.40637636184692383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:07.999200Z", "completed_at": "2022-09-07T05:20:08.333314Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:08.333688Z", "completed_at": "2022-09-07T05:20:08.333699Z"}], "thread_id": "Thread-1", "execution_time": 0.3354678153991699, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:08.335550Z", "completed_at": "2022-09-07T05:20:08.672757Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:08.673131Z", "completed_at": "2022-09-07T05:20:08.673143Z"}], "thread_id": "Thread-1", "execution_time": 0.3385920524597168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:08.674927Z", "completed_at": "2022-09-07T05:20:08.989654Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:08.990055Z", "completed_at": "2022-09-07T05:20:08.990067Z"}], "thread_id": "Thread-1", "execution_time": 0.31612110137939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:08.991929Z", "completed_at": "2022-09-07T05:20:09.349502Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:09.349952Z", "completed_at": "2022-09-07T05:20:09.349966Z"}], "thread_id": "Thread-1", "execution_time": 0.3590738773345947, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:09.352192Z", "completed_at": "2022-09-07T05:20:09.757798Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:09.758210Z", "completed_at": "2022-09-07T05:20:09.758222Z"}], "thread_id": "Thread-1", "execution_time": 0.40703296661376953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:09.760600Z", "completed_at": "2022-09-07T05:20:10.161229Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:10.161608Z", "completed_at": "2022-09-07T05:20:10.161620Z"}], "thread_id": "Thread-1", "execution_time": 0.40226006507873535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:10.163869Z", "completed_at": "2022-09-07T05:20:10.466226Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:10.466670Z", "completed_at": "2022-09-07T05:20:10.466684Z"}], "thread_id": "Thread-1", "execution_time": 0.304243803024292, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:10.468873Z", "completed_at": "2022-09-07T05:20:10.798096Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:10.798524Z", "completed_at": "2022-09-07T05:20:10.798537Z"}], "thread_id": "Thread-1", "execution_time": 0.33069920539855957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:10.800668Z", "completed_at": "2022-09-07T05:20:11.194131Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:11.194522Z", "completed_at": "2022-09-07T05:20:11.194534Z"}], "thread_id": "Thread-1", "execution_time": 0.39501094818115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:11.196321Z", "completed_at": "2022-09-07T05:20:11.526033Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:11.526609Z", "completed_at": "2022-09-07T05:20:11.526624Z"}], "thread_id": "Thread-1", "execution_time": 0.33128881454467773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:11.528921Z", "completed_at": "2022-09-07T05:20:11.908195Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:11.908640Z", "completed_at": "2022-09-07T05:20:11.908654Z"}], "thread_id": "Thread-1", "execution_time": 0.38129711151123047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:11.910715Z", "completed_at": "2022-09-07T05:20:12.233810Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:12.234267Z", "completed_at": "2022-09-07T05:20:12.234281Z"}], "thread_id": "Thread-1", "execution_time": 0.32495903968811035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:12.236506Z", "completed_at": "2022-09-07T05:20:12.626810Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:12.627242Z", "completed_at": "2022-09-07T05:20:12.627255Z"}], "thread_id": "Thread-1", "execution_time": 0.3918027877807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:12.629396Z", "completed_at": "2022-09-07T05:20:13.039002Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:13.039447Z", "completed_at": "2022-09-07T05:20:13.039460Z"}], "thread_id": "Thread-1", "execution_time": 0.4112570285797119, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:13.041588Z", "completed_at": "2022-09-07T05:20:13.409352Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:13.409803Z", "completed_at": "2022-09-07T05:20:13.409816Z"}], "thread_id": "Thread-1", "execution_time": 0.36927318572998047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:13.411968Z", "completed_at": "2022-09-07T05:20:13.770525Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:13.770973Z", "completed_at": "2022-09-07T05:20:13.770988Z"}], "thread_id": "Thread-1", "execution_time": 0.36007189750671387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:13.772996Z", "completed_at": "2022-09-07T05:20:14.117012Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:14.117378Z", "completed_at": "2022-09-07T05:20:14.117389Z"}], "thread_id": "Thread-1", "execution_time": 0.3456711769104004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:14.118848Z", "completed_at": "2022-09-07T05:20:14.509721Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:14.510147Z", "completed_at": "2022-09-07T05:20:14.510160Z"}], "thread_id": "Thread-1", "execution_time": 0.3922712802886963, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:14.512318Z", "completed_at": "2022-09-07T05:20:14.841077Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:14.841523Z", "completed_at": "2022-09-07T05:20:14.841536Z"}], "thread_id": "Thread-1", "execution_time": 0.330402135848999, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:14.843310Z", "completed_at": "2022-09-07T05:20:15.205413Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:15.205842Z", "completed_at": "2022-09-07T05:20:15.205855Z"}], "thread_id": "Thread-1", "execution_time": 0.36361193656921387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:15.207966Z", "completed_at": "2022-09-07T05:20:15.523536Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:15.523969Z", "completed_at": "2022-09-07T05:20:15.523981Z"}], "thread_id": "Thread-1", "execution_time": 0.3170151710510254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:15.526113Z", "completed_at": "2022-09-07T05:20:15.839870Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:15.840298Z", "completed_at": "2022-09-07T05:20:15.840311Z"}], "thread_id": "Thread-1", "execution_time": 0.3153719902038574, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:15.842420Z", "completed_at": "2022-09-07T05:20:16.310635Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:16.311067Z", "completed_at": "2022-09-07T05:20:16.311080Z"}], "thread_id": "Thread-1", "execution_time": 0.46981310844421387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:16.313172Z", "completed_at": "2022-09-07T05:20:16.662411Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:16.662858Z", "completed_at": "2022-09-07T05:20:16.662873Z"}], "thread_id": "Thread-1", "execution_time": 0.3508768081665039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:16.665030Z", "completed_at": "2022-09-07T05:20:17.054920Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:17.055362Z", "completed_at": "2022-09-07T05:20:17.055375Z"}], "thread_id": "Thread-1", "execution_time": 0.3914000988006592, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:17.057904Z", "completed_at": "2022-09-07T05:20:17.397267Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:17.397687Z", "completed_at": "2022-09-07T05:20:17.397700Z"}], "thread_id": "Thread-1", "execution_time": 0.341310977935791, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:17.399741Z", "completed_at": "2022-09-07T05:20:17.797249Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:17.797694Z", "completed_at": "2022-09-07T05:20:17.797707Z"}], "thread_id": "Thread-1", "execution_time": 0.399338960647583, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:17.799836Z", "completed_at": "2022-09-07T05:20:18.154188Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:18.154617Z", "completed_at": "2022-09-07T05:20:18.154630Z"}], "thread_id": "Thread-1", "execution_time": 0.35593414306640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:18.156710Z", "completed_at": "2022-09-07T05:20:18.490208Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:18.490658Z", "completed_at": "2022-09-07T05:20:18.490671Z"}], "thread_id": "Thread-1", "execution_time": 0.3351097106933594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:18.492879Z", "completed_at": "2022-09-07T05:20:18.924077Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:18.924509Z", "completed_at": "2022-09-07T05:20:18.924522Z"}], "thread_id": "Thread-1", "execution_time": 0.433164119720459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:18.926623Z", "completed_at": "2022-09-07T05:20:19.241703Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:19.242145Z", "completed_at": "2022-09-07T05:20:19.242158Z"}], "thread_id": "Thread-1", "execution_time": 0.3165321350097656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:19.244111Z", "completed_at": "2022-09-07T05:20:19.588137Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:19.588591Z", "completed_at": "2022-09-07T05:20:19.588604Z"}], "thread_id": "Thread-1", "execution_time": 0.345778226852417, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:19.590588Z", "completed_at": "2022-09-07T05:20:19.984433Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:19.984896Z", "completed_at": "2022-09-07T05:20:19.984910Z"}], "thread_id": "Thread-1", "execution_time": 0.39568090438842773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:19.987073Z", "completed_at": "2022-09-07T05:20:20.331132Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:20.331564Z", "completed_at": "2022-09-07T05:20:20.331577Z"}], "thread_id": "Thread-1", "execution_time": 0.3456258773803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:20.333676Z", "completed_at": "2022-09-07T05:20:20.687795Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:20.688236Z", "completed_at": "2022-09-07T05:20:20.688249Z"}], "thread_id": "Thread-1", "execution_time": 0.35571789741516113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:20.690471Z", "completed_at": "2022-09-07T05:20:21.056625Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:21.056990Z", "completed_at": "2022-09-07T05:20:21.057001Z"}], "thread_id": "Thread-1", "execution_time": 0.3675239086151123, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:21.058787Z", "completed_at": "2022-09-07T05:20:21.438427Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:21.438866Z", "completed_at": "2022-09-07T05:20:21.438879Z"}], "thread_id": "Thread-1", "execution_time": 0.3811318874359131, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:21.440984Z", "completed_at": "2022-09-07T05:20:21.831846Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:21.832287Z", "completed_at": "2022-09-07T05:20:21.832301Z"}], "thread_id": "Thread-1", "execution_time": 0.39247798919677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:21.834448Z", "completed_at": "2022-09-07T05:20:22.140965Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:22.141407Z", "completed_at": "2022-09-07T05:20:22.141420Z"}], "thread_id": "Thread-1", "execution_time": 0.3080177307128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:22.143507Z", "completed_at": "2022-09-07T05:20:22.567368Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:22.567723Z", "completed_at": "2022-09-07T05:20:22.567734Z"}], "thread_id": "Thread-1", "execution_time": 0.4252901077270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:22.569434Z", "completed_at": "2022-09-07T05:20:22.897870Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:22.898336Z", "completed_at": "2022-09-07T05:20:22.898350Z"}], "thread_id": "Thread-1", "execution_time": 0.32993102073669434, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:22.900516Z", "completed_at": "2022-09-07T05:20:23.358129Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:23.358623Z", "completed_at": "2022-09-07T05:20:23.358637Z"}], "thread_id": "Thread-1", "execution_time": 0.4592008590698242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:23.360986Z", "completed_at": "2022-09-07T05:20:23.712201Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:23.712571Z", "completed_at": "2022-09-07T05:20:23.712582Z"}], "thread_id": "Thread-1", "execution_time": 0.35263800621032715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:23.714319Z", "completed_at": "2022-09-07T05:20:24.061629Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:24.061940Z", "completed_at": "2022-09-07T05:20:24.061974Z"}], "thread_id": "Thread-1", "execution_time": 0.3485901355743408, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:24.063545Z", "completed_at": "2022-09-07T05:20:24.454637Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:24.455102Z", "completed_at": "2022-09-07T05:20:24.455116Z"}], "thread_id": "Thread-1", "execution_time": 0.3925631046295166, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:24.457262Z", "completed_at": "2022-09-07T05:20:24.803989Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:24.804428Z", "completed_at": "2022-09-07T05:20:24.804441Z"}], "thread_id": "Thread-1", "execution_time": 0.34862804412841797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:24.806582Z", "completed_at": "2022-09-07T05:20:25.197711Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:25.198124Z", "completed_at": "2022-09-07T05:20:25.198137Z"}], "thread_id": "Thread-1", "execution_time": 0.3927192687988281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:25.200101Z", "completed_at": "2022-09-07T05:20:25.583737Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:25.584187Z", "completed_at": "2022-09-07T05:20:25.584201Z"}], "thread_id": "Thread-1", "execution_time": 0.3851962089538574, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:25.586360Z", "completed_at": "2022-09-07T05:20:25.924420Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:25.924891Z", "completed_at": "2022-09-07T05:20:25.924904Z"}], "thread_id": "Thread-1", "execution_time": 0.33977174758911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:25.927027Z", "completed_at": "2022-09-07T05:20:26.267711Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:26.268166Z", "completed_at": "2022-09-07T05:20:26.268180Z"}], "thread_id": "Thread-1", "execution_time": 0.34217119216918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:26.270375Z", "completed_at": "2022-09-07T05:20:26.662946Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:26.663398Z", "completed_at": "2022-09-07T05:20:26.663411Z"}], "thread_id": "Thread-1", "execution_time": 0.3941042423248291, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:26.665537Z", "completed_at": "2022-09-07T05:20:26.967137Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:26.967576Z", "completed_at": "2022-09-07T05:20:26.967588Z"}], "thread_id": "Thread-1", "execution_time": 0.30305004119873047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:26.969507Z", "completed_at": "2022-09-07T05:20:27.345508Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:27.345897Z", "completed_at": "2022-09-07T05:20:27.345909Z"}], "thread_id": "Thread-1", "execution_time": 0.3776359558105469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:27.347792Z", "completed_at": "2022-09-07T05:20:27.677660Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:27.678116Z", "completed_at": "2022-09-07T05:20:27.678129Z"}], "thread_id": "Thread-1", "execution_time": 0.33141303062438965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:27.680347Z", "completed_at": "2022-09-07T05:20:28.061100Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:28.061622Z", "completed_at": "2022-09-07T05:20:28.061641Z"}], "thread_id": "Thread-1", "execution_time": 0.38250112533569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:28.064321Z", "completed_at": "2022-09-07T05:20:28.449936Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:28.450247Z", "completed_at": "2022-09-07T05:20:28.450257Z"}], "thread_id": "Thread-1", "execution_time": 0.38700389862060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:28.451938Z", "completed_at": "2022-09-07T05:20:28.785549Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:28.785866Z", "completed_at": "2022-09-07T05:20:28.785877Z"}], "thread_id": "Thread-1", "execution_time": 0.33487510681152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:28.787464Z", "completed_at": "2022-09-07T05:20:29.117432Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:29.117798Z", "completed_at": "2022-09-07T05:20:29.117809Z"}], "thread_id": "Thread-1", "execution_time": 0.3312802314758301, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:29.119571Z", "completed_at": "2022-09-07T05:20:29.471621Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:29.471977Z", "completed_at": "2022-09-07T05:20:29.471989Z"}], "thread_id": "Thread-1", "execution_time": 0.35335803031921387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:29.473806Z", "completed_at": "2022-09-07T05:20:29.799728Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:29.800105Z", "completed_at": "2022-09-07T05:20:29.800116Z"}], "thread_id": "Thread-1", "execution_time": 0.3275630474090576, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:29.801956Z", "completed_at": "2022-09-07T05:20:30.135513Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:30.135874Z", "completed_at": "2022-09-07T05:20:30.135886Z"}], "thread_id": "Thread-1", "execution_time": 0.33490419387817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:30.137659Z", "completed_at": "2022-09-07T05:20:30.494141Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:30.494580Z", "completed_at": "2022-09-07T05:20:30.494594Z"}], "thread_id": "Thread-1", "execution_time": 0.3579549789428711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:30.496726Z", "completed_at": "2022-09-07T05:20:30.843230Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:30.843635Z", "completed_at": "2022-09-07T05:20:30.843648Z"}], "thread_id": "Thread-1", "execution_time": 0.34792399406433105, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:30.845511Z", "completed_at": "2022-09-07T05:20:31.180539Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:31.180899Z", "completed_at": "2022-09-07T05:20:31.180910Z"}], "thread_id": "Thread-1", "execution_time": 0.3366107940673828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:31.182746Z", "completed_at": "2022-09-07T05:20:31.506071Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:31.506458Z", "completed_at": "2022-09-07T05:20:31.506471Z"}], "thread_id": "Thread-1", "execution_time": 0.3247542381286621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:31.507974Z", "completed_at": "2022-09-07T05:20:31.841268Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:31.841683Z", "completed_at": "2022-09-07T05:20:31.841696Z"}], "thread_id": "Thread-1", "execution_time": 0.334658145904541, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:31.843555Z", "completed_at": "2022-09-07T05:20:32.265824Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:32.266174Z", "completed_at": "2022-09-07T05:20:32.266185Z"}], "thread_id": "Thread-1", "execution_time": 0.42351293563842773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:32.268188Z", "completed_at": "2022-09-07T05:20:32.614656Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:32.615016Z", "completed_at": "2022-09-07T05:20:32.615027Z"}], "thread_id": "Thread-1", "execution_time": 0.34809303283691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:32.616820Z", "completed_at": "2022-09-07T05:20:33.084295Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:33.084654Z", "completed_at": "2022-09-07T05:20:33.084665Z"}], "thread_id": "Thread-1", "execution_time": 0.46881771087646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:33.086753Z", "completed_at": "2022-09-07T05:20:33.443904Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:33.444343Z", "completed_at": "2022-09-07T05:20:33.444356Z"}], "thread_id": "Thread-1", "execution_time": 0.35895395278930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:33.446405Z", "completed_at": "2022-09-07T05:20:33.826707Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:33.827086Z", "completed_at": "2022-09-07T05:20:33.827098Z"}], "thread_id": "Thread-1", "execution_time": 0.3817942142486572, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:33.828769Z", "completed_at": "2022-09-07T05:20:34.123939Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.124372Z", "completed_at": "2022-09-07T05:20:34.124385Z"}], "thread_id": "Thread-1", "execution_time": 0.2965390682220459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.126478Z", "completed_at": "2022-09-07T05:20:34.529029Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.529458Z", "completed_at": "2022-09-07T05:20:34.529471Z"}], "thread_id": "Thread-1", "execution_time": 0.404041051864624, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.531601Z", "completed_at": "2022-09-07T05:20:34.548506Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.548871Z", "completed_at": "2022-09-07T05:20:34.548881Z"}], "thread_id": "Thread-1", "execution_time": 0.01838231086730957, "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_ad_group_id__modified_at.84af14c83b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.550370Z", "completed_at": "2022-09-07T05:20:34.561365Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.561715Z", "completed_at": "2022-09-07T05:20:34.561724Z"}], "thread_id": "Thread-1", "execution_time": 0.012128114700317383, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.563151Z", "completed_at": "2022-09-07T05:20:34.569469Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.569816Z", "completed_at": "2022-09-07T05:20:34.569825Z"}], "thread_id": "Thread-1", "execution_time": 0.007446765899658203, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.571270Z", "completed_at": "2022-09-07T05:20:34.576936Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.577288Z", "completed_at": "2022-09-07T05:20:34.577296Z"}], "thread_id": "Thread-1", "execution_time": 0.006814241409301758, "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_ad_group_id__date_day.a0fcc4e33c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.578688Z", "completed_at": "2022-09-07T05:20:34.583179Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.583484Z", "completed_at": "2022-09-07T05:20:34.583505Z"}], "thread_id": "Thread-1", "execution_time": 0.005535125732421875, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.585366Z", "completed_at": "2022-09-07T05:20:34.591212Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.591518Z", "completed_at": "2022-09-07T05:20:34.591526Z"}], "thread_id": "Thread-1", "execution_time": 0.007234096527099609, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.592677Z", "completed_at": "2022-09-07T05:20:34.597420Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.597695Z", "completed_at": "2022-09-07T05:20:34.597701Z"}], "thread_id": "Thread-1", "execution_time": 0.00564122200012207, "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_ad_id__modified_at.38599b8cba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.598828Z", "completed_at": "2022-09-07T05:20:34.602572Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.602984Z", "completed_at": "2022-09-07T05:20:34.602991Z"}], "thread_id": "Thread-1", "execution_time": 0.004770040512084961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.604084Z", "completed_at": "2022-09-07T05:20:34.607909Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.608180Z", "completed_at": "2022-09-07T05:20:34.608186Z"}], "thread_id": "Thread-1", "execution_time": 0.004850864410400391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.609286Z", "completed_at": "2022-09-07T05:20:34.614677Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.614945Z", "completed_at": "2022-09-07T05:20:34.614951Z"}], "thread_id": "Thread-1", "execution_time": 0.00626826286315918, "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_ad_id__date_day__ad_group_id.0d8d23c516"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.616054Z", "completed_at": "2022-09-07T05:20:34.620409Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.620854Z", "completed_at": "2022-09-07T05:20:34.620861Z"}], "thread_id": "Thread-1", "execution_time": 0.005629062652587891, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.622798Z", "completed_at": "2022-09-07T05:20:34.626667Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.626932Z", "completed_at": "2022-09-07T05:20:34.626939Z"}], "thread_id": "Thread-1", "execution_time": 0.00504302978515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.628068Z", "completed_at": "2022-09-07T05:20:34.632578Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.632897Z", "completed_at": "2022-09-07T05:20:34.632903Z"}], "thread_id": "Thread-1", "execution_time": 0.005604982376098633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.634878Z", "completed_at": "2022-09-07T05:20:34.640159Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.640467Z", "completed_at": "2022-09-07T05:20:34.640474Z"}], "thread_id": "Thread-1", "execution_time": 0.007193088531494141, "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_campaign_id__modified_at.317f970af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.641970Z", "completed_at": "2022-09-07T05:20:34.646152Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.646416Z", "completed_at": "2022-09-07T05:20:34.646423Z"}], "thread_id": "Thread-1", "execution_time": 0.005529880523681641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.647511Z", "completed_at": "2022-09-07T05:20:34.651420Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.651713Z", "completed_at": "2022-09-07T05:20:34.651719Z"}], "thread_id": "Thread-1", "execution_time": 0.004972219467163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.652884Z", "completed_at": "2022-09-07T05:20:34.657642Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.658125Z", "completed_at": "2022-09-07T05:20:34.658132Z"}], "thread_id": "Thread-1", "execution_time": 0.0061800479888916016, "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_campaign_id__date_day.bad41b0481"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.659437Z", "completed_at": "2022-09-07T05:20:34.748142Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.748586Z", "completed_at": "2022-09-07T05:20:34.748599Z"}], "thread_id": "Thread-1", "execution_time": 0.08995890617370605, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.750469Z", "completed_at": "2022-09-07T05:20:34.756460Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.756886Z", "completed_at": "2022-09-07T05:20:34.756896Z"}], "thread_id": "Thread-1", "execution_time": 0.0074040889739990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.758674Z", "completed_at": "2022-09-07T05:20:34.765572Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.765941Z", "completed_at": "2022-09-07T05:20:34.765950Z"}], "thread_id": "Thread-1", "execution_time": 0.008205890655517578, "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_keyword_id__modified_at.7b06162d24"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.767457Z", "completed_at": "2022-09-07T05:20:34.772334Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.772691Z", "completed_at": "2022-09-07T05:20:34.772699Z"}], "thread_id": "Thread-1", "execution_time": 0.006061077117919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.774185Z", "completed_at": "2022-09-07T05:20:34.780071Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.780431Z", "completed_at": "2022-09-07T05:20:34.780439Z"}], "thread_id": "Thread-1", "execution_time": 0.007264852523803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.781880Z", "completed_at": "2022-09-07T05:20:34.787611Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.787968Z", "completed_at": "2022-09-07T05:20:34.787977Z"}], "thread_id": "Thread-1", "execution_time": 0.007066965103149414, "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_keyword_id__date_day.9f0099cff8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.789413Z", "completed_at": "2022-09-07T05:20:34.794423Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.794775Z", "completed_at": "2022-09-07T05:20:34.794784Z"}], "thread_id": "Thread-1", "execution_time": 0.006356954574584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.796241Z", "completed_at": "2022-09-07T05:20:34.801111Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.801460Z", "completed_at": "2022-09-07T05:20:34.801468Z"}], "thread_id": "Thread-1", "execution_time": 0.005995750427246094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.802891Z", "completed_at": "2022-09-07T05:20:34.816768Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.817046Z", "completed_at": "2022-09-07T05:20:34.817054Z"}], "thread_id": "Thread-1", "execution_time": 0.014871835708618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.818398Z", "completed_at": "2022-09-07T05:20:34.826048Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.826334Z", "completed_at": "2022-09-07T05:20:34.826341Z"}], "thread_id": "Thread-1", "execution_time": 0.008696794509887695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.827877Z", "completed_at": "2022-09-07T05:20:34.834044Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.834327Z", "completed_at": "2022-09-07T05:20:34.834334Z"}], "thread_id": "Thread-1", "execution_time": 0.007200002670288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.835657Z", "completed_at": "2022-09-07T05:20:34.844913Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.845312Z", "completed_at": "2022-09-07T05:20:34.845323Z"}], "thread_id": "Thread-1", "execution_time": 0.010502338409423828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.847757Z", "completed_at": "2022-09-07T05:20:34.856668Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.856978Z", "completed_at": "2022-09-07T05:20:34.856988Z"}], "thread_id": "Thread-1", "execution_time": 0.010390996932983398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.858818Z", "completed_at": "2022-09-07T05:20:34.863846Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.864132Z", "completed_at": "2022-09-07T05:20:34.864140Z"}], "thread_id": "Thread-1", "execution_time": 0.006263017654418945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id.8647048f7a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.865335Z", "completed_at": "2022-09-07T05:20:34.869830Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.870125Z", "completed_at": "2022-09-07T05:20:34.870132Z"}], "thread_id": "Thread-1", "execution_time": 0.005448102951049805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.871360Z", "completed_at": "2022-09-07T05:20:34.878854Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.879146Z", "completed_at": "2022-09-07T05:20:34.879153Z"}], "thread_id": "Thread-1", "execution_time": 0.00859212875366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.881077Z", "completed_at": "2022-09-07T05:20:34.886727Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.887072Z", "completed_at": "2022-09-07T05:20:34.887081Z"}], "thread_id": "Thread-1", "execution_time": 0.00713801383972168, "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__fivetran_id__date_day.aad2a48344"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.888797Z", "completed_at": "2022-09-07T05:20:34.893614Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.893910Z", "completed_at": "2022-09-07T05:20:34.893918Z"}], "thread_id": "Thread-1", "execution_time": 0.006003141403198242, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.895368Z", "completed_at": "2022-09-07T05:20:34.900959Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.901415Z", "completed_at": "2022-09-07T05:20:34.901423Z"}], "thread_id": "Thread-1", "execution_time": 0.007030010223388672, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.903322Z", "completed_at": "2022-09-07T05:20:34.908155Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.908438Z", "completed_at": "2022-09-07T05:20:34.908445Z"}], "thread_id": "Thread-1", "execution_time": 0.005759000778198242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced.f9b4d28fa2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.909613Z", "completed_at": "2022-09-07T05:20:34.913925Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.914217Z", "completed_at": "2022-09-07T05:20:34.914224Z"}], "thread_id": "Thread-1", "execution_time": 0.005262136459350586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.915396Z", "completed_at": "2022-09-07T05:20:34.919378Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.919662Z", "completed_at": "2022-09-07T05:20:34.919669Z"}], "thread_id": "Thread-1", "execution_time": 0.004920005798339844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.920892Z", "completed_at": "2022-09-07T05:20:34.926894Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.927494Z", "completed_at": "2022-09-07T05:20:34.927502Z"}], "thread_id": "Thread-1", "execution_time": 0.007302045822143555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at.2922c18b58"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.929002Z", "completed_at": "2022-09-07T05:20:34.933196Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.933480Z", "completed_at": "2022-09-07T05:20:34.933487Z"}], "thread_id": "Thread-1", "execution_time": 0.0051898956298828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.934664Z", "completed_at": "2022-09-07T05:20:34.938904Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.939195Z", "completed_at": "2022-09-07T05:20:34.939201Z"}], "thread_id": "Thread-1", "execution_time": 0.005186796188354492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.940360Z", "completed_at": "2022-09-07T05:20:34.945064Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.945349Z", "completed_at": "2022-09-07T05:20:34.945356Z"}], "thread_id": "Thread-1", "execution_time": 0.0056362152099609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at.0a60ad0fef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.946514Z", "completed_at": "2022-09-07T05:20:34.951695Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.951996Z", "completed_at": "2022-09-07T05:20:34.952003Z"}], "thread_id": "Thread-1", "execution_time": 0.006291866302490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.953774Z", "completed_at": "2022-09-07T05:20:34.957924Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.958212Z", "completed_at": "2022-09-07T05:20:34.958219Z"}], "thread_id": "Thread-1", "execution_time": 0.005206108093261719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.959404Z", "completed_at": "2022-09-07T05:20:34.965946Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.966498Z", "completed_at": "2022-09-07T05:20:34.966509Z"}], "thread_id": "Thread-1", "execution_time": 0.008040904998779297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.968886Z", "completed_at": "2022-09-07T05:20:34.977031Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.977707Z", "completed_at": "2022-09-07T05:20:34.977717Z"}], "thread_id": "Thread-1", "execution_time": 0.00997304916381836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id.bd909529e7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.979434Z", "completed_at": "2022-09-07T05:20:34.985209Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.985538Z", "completed_at": "2022-09-07T05:20:34.985547Z"}], "thread_id": "Thread-1", "execution_time": 0.006994009017944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.987433Z", "completed_at": "2022-09-07T05:20:34.992085Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:34.992379Z", "completed_at": "2022-09-07T05:20:34.992386Z"}], "thread_id": "Thread-1", "execution_time": 0.005632162094116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:34.993609Z", "completed_at": "2022-09-07T05:20:35.001718Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.002057Z", "completed_at": "2022-09-07T05:20:35.002065Z"}], "thread_id": "Thread-1", "execution_time": 0.009238004684448242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.003567Z", "completed_at": "2022-09-07T05:20:35.012386Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.012676Z", "completed_at": "2022-09-07T05:20:35.012683Z"}], "thread_id": "Thread-1", "execution_time": 0.00988316535949707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.014072Z", "completed_at": "2022-09-07T05:20:35.021192Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.021481Z", "completed_at": "2022-09-07T05:20:35.021488Z"}], "thread_id": "Thread-1", "execution_time": 0.008175134658813477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.023013Z", "completed_at": "2022-09-07T05:20:35.028051Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.028342Z", "completed_at": "2022-09-07T05:20:35.028349Z"}], "thread_id": "Thread-1", "execution_time": 0.0062808990478515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at.7437b392c2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.029549Z", "completed_at": "2022-09-07T05:20:35.033750Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.034042Z", "completed_at": "2022-09-07T05:20:35.034050Z"}], "thread_id": "Thread-1", "execution_time": 0.005166053771972656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.035280Z", "completed_at": "2022-09-07T05:20:35.040460Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.040752Z", "completed_at": "2022-09-07T05:20:35.040759Z"}], "thread_id": "Thread-1", "execution_time": 0.006135225296020508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.041982Z", "completed_at": "2022-09-07T05:20:35.047608Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.047949Z", "completed_at": "2022-09-07T05:20:35.047957Z"}], "thread_id": "Thread-1", "execution_time": 0.0067310333251953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.049353Z", "completed_at": "2022-09-07T05:20:35.054354Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.054649Z", "completed_at": "2022-09-07T05:20:35.054656Z"}], "thread_id": "Thread-1", "execution_time": 0.006081104278564453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced.69ddc26562"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.055912Z", "completed_at": "2022-09-07T05:20:35.060201Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.060491Z", "completed_at": "2022-09-07T05:20:35.060498Z"}], "thread_id": "Thread-1", "execution_time": 0.005300998687744141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.061691Z", "completed_at": "2022-09-07T05:20:35.067535Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.067898Z", "completed_at": "2022-09-07T05:20:35.067908Z"}], "thread_id": "Thread-1", "execution_time": 0.006925106048583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.069569Z", "completed_at": "2022-09-07T05:20:35.076476Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.076783Z", "completed_at": "2022-09-07T05:20:35.076793Z"}], "thread_id": "Thread-1", "execution_time": 0.008024215698242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at.19f35742f1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.078088Z", "completed_at": "2022-09-07T05:20:35.083469Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.083782Z", "completed_at": "2022-09-07T05:20:35.083792Z"}], "thread_id": "Thread-1", "execution_time": 0.006399869918823242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.085391Z", "completed_at": "2022-09-07T05:20:35.091628Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.092007Z", "completed_at": "2022-09-07T05:20:35.092015Z"}], "thread_id": "Thread-1", "execution_time": 0.0073506832122802734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.093480Z", "completed_at": "2022-09-07T05:20:35.103200Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.103673Z", "completed_at": "2022-09-07T05:20:35.103685Z"}], "thread_id": "Thread-1", "execution_time": 0.011116981506347656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day.3019f8a860"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.105441Z", "completed_at": "2022-09-07T05:20:35.110593Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.110895Z", "completed_at": "2022-09-07T05:20:35.110903Z"}], "thread_id": "Thread-1", "execution_time": 0.006283998489379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.112164Z", "completed_at": "2022-09-07T05:20:35.116722Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.117058Z", "completed_at": "2022-09-07T05:20:35.117066Z"}], "thread_id": "Thread-1", "execution_time": 0.0055811405181884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.118463Z", "completed_at": "2022-09-07T05:20:35.124613Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.124909Z", "completed_at": "2022-09-07T05:20:35.124916Z"}], "thread_id": "Thread-1", "execution_time": 0.007277250289916992, "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_criterion_id__ad_group_id__updated_at.197bbc6816"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.126120Z", "completed_at": "2022-09-07T05:20:35.130806Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.131108Z", "completed_at": "2022-09-07T05:20:35.131115Z"}], "thread_id": "Thread-1", "execution_time": 0.005812883377075195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.132465Z", "completed_at": "2022-09-07T05:20:35.137335Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.137629Z", "completed_at": "2022-09-07T05:20:35.137636Z"}], "thread_id": "Thread-1", "execution_time": 0.0058329105377197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at.096e8da5fd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.138824Z", "completed_at": "2022-09-07T05:20:35.143233Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.143631Z", "completed_at": "2022-09-07T05:20:35.143638Z"}], "thread_id": "Thread-1", "execution_time": 0.00548100471496582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.144837Z", "completed_at": "2022-09-07T05:20:35.151344Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.151635Z", "completed_at": "2022-09-07T05:20:35.151642Z"}], "thread_id": "Thread-1", "execution_time": 0.007468700408935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day.ed55af6020"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.152845Z", "completed_at": "2022-09-07T05:20:35.157223Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.157521Z", "completed_at": "2022-09-07T05:20:35.157528Z"}], "thread_id": "Thread-1", "execution_time": 0.0053501129150390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.158714Z", "completed_at": "2022-09-07T05:20:35.162879Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.163171Z", "completed_at": "2022-09-07T05:20:35.163178Z"}], "thread_id": "Thread-1", "execution_time": 0.0051229000091552734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.164379Z", "completed_at": "2022-09-07T05:20:35.180830Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.181216Z", "completed_at": "2022-09-07T05:20:35.181224Z"}], "thread_id": "Thread-1", "execution_time": 0.017538070678710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.182464Z", "completed_at": "2022-09-07T05:20:35.188831Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.189126Z", "completed_at": "2022-09-07T05:20:35.189133Z"}], "thread_id": "Thread-1", "execution_time": 0.007333993911743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.190384Z", "completed_at": "2022-09-07T05:20:35.196084Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.196504Z", "completed_at": "2022-09-07T05:20:35.196516Z"}], "thread_id": "Thread-1", "execution_time": 0.0068700313568115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.198083Z", "completed_at": "2022-09-07T05:20:35.206721Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.207108Z", "completed_at": "2022-09-07T05:20:35.207117Z"}], "thread_id": "Thread-1", "execution_time": 0.00984811782836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.208393Z", "completed_at": "2022-09-07T05:20:35.213509Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.213797Z", "completed_at": "2022-09-07T05:20:35.213804Z"}], "thread_id": "Thread-1", "execution_time": 0.006068229675292969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.215000Z", "completed_at": "2022-09-07T05:20:35.219161Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.219460Z", "completed_at": "2022-09-07T05:20:35.219467Z"}], "thread_id": "Thread-1", "execution_time": 0.005133152008056641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.220677Z", "completed_at": "2022-09-07T05:20:35.227657Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.227948Z", "completed_at": "2022-09-07T05:20:35.227955Z"}], "thread_id": "Thread-1", "execution_time": 0.007948875427246094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.229286Z", "completed_at": "2022-09-07T05:20:35.236944Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.237229Z", "completed_at": "2022-09-07T05:20:35.237236Z"}], "thread_id": "Thread-1", "execution_time": 0.00870823860168457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.238618Z", "completed_at": "2022-09-07T05:20:35.248411Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.248696Z", "completed_at": "2022-09-07T05:20:35.248703Z"}], "thread_id": "Thread-1", "execution_time": 0.010729789733886719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.250012Z", "completed_at": "2022-09-07T05:20:35.254983Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.255281Z", "completed_at": "2022-09-07T05:20:35.255288Z"}], "thread_id": "Thread-1", "execution_time": 0.006030082702636719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at.8bf2733e86"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.256457Z", "completed_at": "2022-09-07T05:20:35.260554Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.260842Z", "completed_at": "2022-09-07T05:20:35.260848Z"}], "thread_id": "Thread-1", "execution_time": 0.005039691925048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.262011Z", "completed_at": "2022-09-07T05:20:35.268185Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.268661Z", "completed_at": "2022-09-07T05:20:35.268668Z"}], "thread_id": "Thread-1", "execution_time": 0.0073699951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.270512Z", "completed_at": "2022-09-07T05:20:35.277109Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.277398Z", "completed_at": "2022-09-07T05:20:35.277405Z"}], "thread_id": "Thread-1", "execution_time": 0.007990121841430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day.69600f7d45"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.278574Z", "completed_at": "2022-09-07T05:20:35.282591Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.282880Z", "completed_at": "2022-09-07T05:20:35.282887Z"}], "thread_id": "Thread-1", "execution_time": 0.004963874816894531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.284053Z", "completed_at": "2022-09-07T05:20:35.288101Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.288398Z", "completed_at": "2022-09-07T05:20:35.288405Z"}], "thread_id": "Thread-1", "execution_time": 0.005010843276977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.289716Z", "completed_at": "2022-09-07T05:20:35.299471Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.300167Z", "completed_at": "2022-09-07T05:20:35.300179Z"}], "thread_id": "Thread-1", "execution_time": 0.011407852172851562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.301945Z", "completed_at": "2022-09-07T05:20:35.307351Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.307640Z", "completed_at": "2022-09-07T05:20:35.307647Z"}], "thread_id": "Thread-1", "execution_time": 0.006409168243408203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day.8f15198e68"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.308850Z", "completed_at": "2022-09-07T05:20:35.313182Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.313483Z", "completed_at": "2022-09-07T05:20:35.313491Z"}], "thread_id": "Thread-1", "execution_time": 0.00531005859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.314698Z", "completed_at": "2022-09-07T05:20:35.318910Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.319201Z", "completed_at": "2022-09-07T05:20:35.319209Z"}], "thread_id": "Thread-1", "execution_time": 0.005171298980712891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.320402Z", "completed_at": "2022-09-07T05:20:35.326716Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.327075Z", "completed_at": "2022-09-07T05:20:35.327083Z"}], "thread_id": "Thread-1", "execution_time": 0.0073549747467041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag.9a655993ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.328628Z", "completed_at": "2022-09-07T05:20:35.333768Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.334167Z", "completed_at": "2022-09-07T05:20:35.334176Z"}], "thread_id": "Thread-1", "execution_time": 0.0063169002532958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.335847Z", "completed_at": "2022-09-07T05:20:35.340996Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.341404Z", "completed_at": "2022-09-07T05:20:35.341413Z"}], "thread_id": "Thread-1", "execution_time": 0.006289005279541016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.342877Z", "completed_at": "2022-09-07T05:20:35.348753Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.349092Z", "completed_at": "2022-09-07T05:20:35.349100Z"}], "thread_id": "Thread-1", "execution_time": 0.006994009017944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id.b03f3dc81d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.350608Z", "completed_at": "2022-09-07T05:20:35.356304Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.356637Z", "completed_at": "2022-09-07T05:20:35.356645Z"}], "thread_id": "Thread-1", "execution_time": 0.006922006607055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.357921Z", "completed_at": "2022-09-07T05:20:35.362071Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.362362Z", "completed_at": "2022-09-07T05:20:35.362369Z"}], "thread_id": "Thread-1", "execution_time": 0.005118846893310547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.363535Z", "completed_at": "2022-09-07T05:20:35.368401Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.368699Z", "completed_at": "2022-09-07T05:20:35.368712Z"}], "thread_id": "Thread-1", "execution_time": 0.005881786346435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id.973a01e410"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.369932Z", "completed_at": "2022-09-07T05:20:35.374051Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.374343Z", "completed_at": "2022-09-07T05:20:35.374350Z"}], "thread_id": "Thread-1", "execution_time": 0.0050737857818603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.375523Z", "completed_at": "2022-09-07T05:20:35.380453Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.380840Z", "completed_at": "2022-09-07T05:20:35.380847Z"}], "thread_id": "Thread-1", "execution_time": 0.005990028381347656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.382532Z", "completed_at": "2022-09-07T05:20:35.387483Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.387775Z", "completed_at": "2022-09-07T05:20:35.387782Z"}], "thread_id": "Thread-1", "execution_time": 0.0063359737396240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id.e761ddb4da"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.388964Z", "completed_at": "2022-09-07T05:20:35.393518Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.393816Z", "completed_at": "2022-09-07T05:20:35.393823Z"}], "thread_id": "Thread-1", "execution_time": 0.005522966384887695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.395004Z", "completed_at": "2022-09-07T05:20:35.400030Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.400320Z", "completed_at": "2022-09-07T05:20:35.400327Z"}], "thread_id": "Thread-1", "execution_time": 0.0059850215911865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.401505Z", "completed_at": "2022-09-07T05:20:35.477905Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.478387Z", "completed_at": "2022-09-07T05:20:35.478401Z"}], "thread_id": "Thread-1", "execution_time": 0.07773804664611816, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.480617Z", "completed_at": "2022-09-07T05:20:35.491189Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.491609Z", "completed_at": "2022-09-07T05:20:35.491619Z"}], "thread_id": "Thread-1", "execution_time": 0.012166976928710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.493609Z", "completed_at": "2022-09-07T05:20:35.503817Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.504200Z", "completed_at": "2022-09-07T05:20:35.504209Z"}], "thread_id": "Thread-1", "execution_time": 0.01192784309387207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.506005Z", "completed_at": "2022-09-07T05:20:35.512821Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.513180Z", "completed_at": "2022-09-07T05:20:35.513188Z"}], "thread_id": "Thread-1", "execution_time": 0.008092880249023438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id.2d20780793"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.514602Z", "completed_at": "2022-09-07T05:20:35.519447Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.519795Z", "completed_at": "2022-09-07T05:20:35.519803Z"}], "thread_id": "Thread-1", "execution_time": 0.005990028381347656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.521209Z", "completed_at": "2022-09-07T05:20:35.526074Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.526431Z", "completed_at": "2022-09-07T05:20:35.526440Z"}], "thread_id": "Thread-1", "execution_time": 0.0060269832611083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.527831Z", "completed_at": "2022-09-07T05:20:35.536912Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.537237Z", "completed_at": "2022-09-07T05:20:35.537245Z"}], "thread_id": "Thread-1", "execution_time": 0.010174989700317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.538801Z", "completed_at": "2022-09-07T05:20:35.547907Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.548533Z", "completed_at": "2022-09-07T05:20:35.548542Z"}], "thread_id": "Thread-1", "execution_time": 0.01060795783996582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.550416Z", "completed_at": "2022-09-07T05:20:35.556931Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.557388Z", "completed_at": "2022-09-07T05:20:35.557397Z"}], "thread_id": "Thread-1", "execution_time": 0.007952690124511719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.559201Z", "completed_at": "2022-09-07T05:20:35.564456Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.564742Z", "completed_at": "2022-09-07T05:20:35.564750Z"}], "thread_id": "Thread-1", "execution_time": 0.006677865982055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.565952Z", "completed_at": "2022-09-07T05:20:35.571657Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.572260Z", "completed_at": "2022-09-07T05:20:35.572267Z"}], "thread_id": "Thread-1", "execution_time": 0.0074079036712646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.574892Z", "completed_at": "2022-09-07T05:20:35.584077Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.584364Z", "completed_at": "2022-09-07T05:20:35.584372Z"}], "thread_id": "Thread-1", "execution_time": 0.010412931442260742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.585576Z", "completed_at": "2022-09-07T05:20:35.589766Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.590049Z", "completed_at": "2022-09-07T05:20:35.590056Z"}], "thread_id": "Thread-1", "execution_time": 0.005120992660522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.591209Z", "completed_at": "2022-09-07T05:20:35.596776Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.597066Z", "completed_at": "2022-09-07T05:20:35.597074Z"}], "thread_id": "Thread-1", "execution_time": 0.006512165069580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.598353Z", "completed_at": "2022-09-07T05:20:35.604118Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.604414Z", "completed_at": "2022-09-07T05:20:35.604422Z"}], "thread_id": "Thread-1", "execution_time": 0.0067179203033447266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at.5975327479"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.605582Z", "completed_at": "2022-09-07T05:20:35.609677Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.609960Z", "completed_at": "2022-09-07T05:20:35.609967Z"}], "thread_id": "Thread-1", "execution_time": 0.005026817321777344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.611113Z", "completed_at": "2022-09-07T05:20:35.620914Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.621207Z", "completed_at": "2022-09-07T05:20:35.621214Z"}], "thread_id": "Thread-1", "execution_time": 0.010750293731689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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.80e8146841"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.622382Z", "completed_at": "2022-09-07T05:20:35.626480Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.626766Z", "completed_at": "2022-09-07T05:20:35.626773Z"}], "thread_id": "Thread-1", "execution_time": 0.005032777786254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.627917Z", "completed_at": "2022-09-07T05:20:35.638923Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.639307Z", "completed_at": "2022-09-07T05:20:35.639319Z"}], "thread_id": "Thread-1", "execution_time": 0.012143135070800781, "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_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.8792b4adf4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.640895Z", "completed_at": "2022-09-07T05:20:35.646924Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.647322Z", "completed_at": "2022-09-07T05:20:35.647332Z"}], "thread_id": "Thread-1", "execution_time": 0.007498979568481445, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.648786Z", "completed_at": "2022-09-07T05:20:35.654612Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.654933Z", "completed_at": "2022-09-07T05:20:35.654940Z"}], "thread_id": "Thread-1", "execution_time": 0.00692296028137207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at.12004c9de0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.656244Z", "completed_at": "2022-09-07T05:20:35.661954Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.662278Z", "completed_at": "2022-09-07T05:20:35.662286Z"}], "thread_id": "Thread-1", "execution_time": 0.006781339645385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.663575Z", "completed_at": "2022-09-07T05:20:35.668585Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.668886Z", "completed_at": "2022-09-07T05:20:35.668893Z"}], "thread_id": "Thread-1", "execution_time": 0.006016731262207031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at.1f05b4ee6f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.670059Z", "completed_at": "2022-09-07T05:20:35.674133Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.674423Z", "completed_at": "2022-09-07T05:20:35.674430Z"}], "thread_id": "Thread-1", "execution_time": 0.005026102066040039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.675590Z", "completed_at": "2022-09-07T05:20:35.683637Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.683936Z", "completed_at": "2022-09-07T05:20:35.683943Z"}], "thread_id": "Thread-1", "execution_time": 0.009018898010253906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.685117Z", "completed_at": "2022-09-07T05:20:35.690164Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.690457Z", "completed_at": "2022-09-07T05:20:35.690464Z"}], "thread_id": "Thread-1", "execution_time": 0.006005048751831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.691631Z", "completed_at": "2022-09-07T05:20:35.699434Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.699732Z", "completed_at": "2022-09-07T05:20:35.699739Z"}], "thread_id": "Thread-1", "execution_time": 0.008772850036621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.701064Z", "completed_at": "2022-09-07T05:20:35.708846Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.709132Z", "completed_at": "2022-09-07T05:20:35.709139Z"}], "thread_id": "Thread-1", "execution_time": 0.008734941482543945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.710588Z", "completed_at": "2022-09-07T05:20:35.716914Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.717204Z", "completed_at": "2022-09-07T05:20:35.717211Z"}], "thread_id": "Thread-1", "execution_time": 0.0072710514068603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.719563Z", "completed_at": "2022-09-07T05:20:35.724334Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.724624Z", "completed_at": "2022-09-07T05:20:35.724631Z"}], "thread_id": "Thread-1", "execution_time": 0.006814002990722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at.d2a9279427"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.725798Z", "completed_at": "2022-09-07T05:20:35.730029Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.730323Z", "completed_at": "2022-09-07T05:20:35.730330Z"}], "thread_id": "Thread-1", "execution_time": 0.005197048187255859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.731512Z", "completed_at": "2022-09-07T05:20:35.748420Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.748700Z", "completed_at": "2022-09-07T05:20:35.748708Z"}], "thread_id": "Thread-1", "execution_time": 0.017853736877441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.750448Z", "completed_at": "2022-09-07T05:20:35.761546Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.761830Z", "completed_at": "2022-09-07T05:20:35.761838Z"}], "thread_id": "Thread-1", "execution_time": 0.01270604133605957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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.c6f46d202a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.762984Z", "completed_at": "2022-09-07T05:20:35.767050Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.767435Z", "completed_at": "2022-09-07T05:20:35.767462Z"}], "thread_id": "Thread-1", "execution_time": 0.005144834518432617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.768626Z", "completed_at": "2022-09-07T05:20:35.778320Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.778703Z", "completed_at": "2022-09-07T05:20:35.778713Z"}], "thread_id": "Thread-1", "execution_time": 0.010771989822387695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.780723Z", "completed_at": "2022-09-07T05:20:35.787222Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.787505Z", "completed_at": "2022-09-07T05:20:35.787513Z"}], "thread_id": "Thread-1", "execution_time": 0.007842063903808594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at.e1c525286c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.788763Z", "completed_at": "2022-09-07T05:20:35.793075Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.793353Z", "completed_at": "2022-09-07T05:20:35.793360Z"}], "thread_id": "Thread-1", "execution_time": 0.005232095718383789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.794538Z", "completed_at": "2022-09-07T05:20:35.803248Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.803684Z", "completed_at": "2022-09-07T05:20:35.803692Z"}], "thread_id": "Thread-1", "execution_time": 0.009833097457885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.805248Z", "completed_at": "2022-09-07T05:20:35.813876Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.814156Z", "completed_at": "2022-09-07T05:20:35.814163Z"}], "thread_id": "Thread-1", "execution_time": 0.009892702102661133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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.03cf031d0c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.815320Z", "completed_at": "2022-09-07T05:20:35.820515Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.820845Z", "completed_at": "2022-09-07T05:20:35.820852Z"}], "thread_id": "Thread-1", "execution_time": 0.006323099136352539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.821981Z", "completed_at": "2022-09-07T05:20:35.827034Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.827324Z", "completed_at": "2022-09-07T05:20:35.827330Z"}], "thread_id": "Thread-1", "execution_time": 0.00598907470703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced.1132e1f339"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.828453Z", "completed_at": "2022-09-07T05:20:35.832569Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.832848Z", "completed_at": "2022-09-07T05:20:35.832855Z"}], "thread_id": "Thread-1", "execution_time": 0.005035877227783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.834132Z", "completed_at": "2022-09-07T05:20:35.840457Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.840804Z", "completed_at": "2022-09-07T05:20:35.840811Z"}], "thread_id": "Thread-1", "execution_time": 0.007386207580566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.841940Z", "completed_at": "2022-09-07T05:20:35.846066Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.846388Z", "completed_at": "2022-09-07T05:20:35.846395Z"}], "thread_id": "Thread-1", "execution_time": 0.005142927169799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.847689Z", "completed_at": "2022-09-07T05:20:35.852508Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.852849Z", "completed_at": "2022-09-07T05:20:35.852861Z"}], "thread_id": "Thread-1", "execution_time": 0.005914211273193359, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.854372Z", "completed_at": "2022-09-07T05:20:35.861137Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.861510Z", "completed_at": "2022-09-07T05:20:35.861522Z"}], "thread_id": "Thread-1", "execution_time": 0.007993698120117188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id.94e8f4de4b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.863106Z", "completed_at": "2022-09-07T05:20:35.869808Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.870103Z", "completed_at": "2022-09-07T05:20:35.870112Z"}], "thread_id": "Thread-1", "execution_time": 0.007824897766113281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.871335Z", "completed_at": "2022-09-07T05:20:35.877047Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.877341Z", "completed_at": "2022-09-07T05:20:35.877348Z"}], "thread_id": "Thread-1", "execution_time": 0.006665945053100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.878851Z", "completed_at": "2022-09-07T05:20:35.883831Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.884308Z", "completed_at": "2022-09-07T05:20:35.884316Z"}], "thread_id": "Thread-1", "execution_time": 0.00634312629699707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id.e92ce8a9c0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.885472Z", "completed_at": "2022-09-07T05:20:35.889681Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.889976Z", "completed_at": "2022-09-07T05:20:35.889984Z"}], "thread_id": "Thread-1", "execution_time": 0.005290985107421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.891118Z", "completed_at": "2022-09-07T05:20:35.896312Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.896604Z", "completed_at": "2022-09-07T05:20:35.896611Z"}], "thread_id": "Thread-1", "execution_time": 0.006134033203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.897812Z", "completed_at": "2022-09-07T05:20:35.905031Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.905388Z", "completed_at": "2022-09-07T05:20:35.905396Z"}], "thread_id": "Thread-1", "execution_time": 0.008281230926513672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.906956Z", "completed_at": "2022-09-07T05:20:35.911959Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.912251Z", "completed_at": "2022-09-07T05:20:35.912258Z"}], "thread_id": "Thread-1", "execution_time": 0.0063059329986572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced.eff7196b87"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.913396Z", "completed_at": "2022-09-07T05:20:35.917506Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.917853Z", "completed_at": "2022-09-07T05:20:35.917860Z"}], "thread_id": "Thread-1", "execution_time": 0.005105733871459961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.918999Z", "completed_at": "2022-09-07T05:20:35.926240Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.926810Z", "completed_at": "2022-09-07T05:20:35.926818Z"}], "thread_id": "Thread-1", "execution_time": 0.00849008560180664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.928183Z", "completed_at": "2022-09-07T05:20:35.933425Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.933717Z", "completed_at": "2022-09-07T05:20:35.933724Z"}], "thread_id": "Thread-1", "execution_time": 0.006298065185546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id.ff47cb8abc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.934865Z", "completed_at": "2022-09-07T05:20:35.939228Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.939512Z", "completed_at": "2022-09-07T05:20:35.939519Z"}], "thread_id": "Thread-1", "execution_time": 0.0052988529205322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.940656Z", "completed_at": "2022-09-07T05:20:35.945486Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.945829Z", "completed_at": "2022-09-07T05:20:35.945836Z"}], "thread_id": "Thread-1", "execution_time": 0.005829811096191406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.946982Z", "completed_at": "2022-09-07T05:20:35.953620Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.954182Z", "completed_at": "2022-09-07T05:20:35.954191Z"}], "thread_id": "Thread-1", "execution_time": 0.007913827896118164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced.d122faa877"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.955521Z", "completed_at": "2022-09-07T05:20:35.959720Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.960063Z", "completed_at": "2022-09-07T05:20:35.960070Z"}], "thread_id": "Thread-1", "execution_time": 0.005209922790527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.961234Z", "completed_at": "2022-09-07T05:20:35.969649Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.969967Z", "completed_at": "2022-09-07T05:20:35.969978Z"}], "thread_id": "Thread-1", "execution_time": 0.009479761123657227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.971635Z", "completed_at": "2022-09-07T05:20:35.979897Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.980324Z", "completed_at": "2022-09-07T05:20:35.980333Z"}], "thread_id": "Thread-1", "execution_time": 0.009573221206665039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.981569Z", "completed_at": "2022-09-07T05:20:35.985817Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.986143Z", "completed_at": "2022-09-07T05:20:35.986150Z"}], "thread_id": "Thread-1", "execution_time": 0.00528407096862793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.987943Z", "completed_at": "2022-09-07T05:20:35.992097Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.992388Z", "completed_at": "2022-09-07T05:20:35.992395Z"}], "thread_id": "Thread-1", "execution_time": 0.005361795425415039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:35.993554Z", "completed_at": "2022-09-07T05:20:35.998621Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:35.998921Z", "completed_at": "2022-09-07T05:20:35.998927Z"}], "thread_id": "Thread-1", "execution_time": 0.006033182144165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id.8e9ab31ea9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.000075Z", "completed_at": "2022-09-07T05:20:36.005127Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.005418Z", "completed_at": "2022-09-07T05:20:36.005424Z"}], "thread_id": "Thread-1", "execution_time": 0.006006002426147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.006576Z", "completed_at": "2022-09-07T05:20:36.014559Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.014855Z", "completed_at": "2022-09-07T05:20:36.014863Z"}], "thread_id": "Thread-1", "execution_time": 0.008948087692260742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.016194Z", "completed_at": "2022-09-07T05:20:36.024069Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.024362Z", "completed_at": "2022-09-07T05:20:36.024369Z"}], "thread_id": "Thread-1", "execution_time": 0.008945226669311523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.025802Z", "completed_at": "2022-09-07T05:20:36.032175Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.032463Z", "completed_at": "2022-09-07T05:20:36.032469Z"}], "thread_id": "Thread-1", "execution_time": 0.007427215576171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.033620Z", "completed_at": "2022-09-07T05:20:36.037709Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.037999Z", "completed_at": "2022-09-07T05:20:36.038005Z"}], "thread_id": "Thread-1", "execution_time": 0.0050427913665771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.039152Z", "completed_at": "2022-09-07T05:20:36.043505Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.043898Z", "completed_at": "2022-09-07T05:20:36.043905Z"}], "thread_id": "Thread-1", "execution_time": 0.0054171085357666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.045376Z", "completed_at": "2022-09-07T05:20:36.050876Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.051170Z", "completed_at": "2022-09-07T05:20:36.051177Z"}], "thread_id": "Thread-1", "execution_time": 0.006591081619262695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced.cd4fd6b0be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.052327Z", "completed_at": "2022-09-07T05:20:36.057303Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.057589Z", "completed_at": "2022-09-07T05:20:36.057596Z"}], "thread_id": "Thread-1", "execution_time": 0.005919933319091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.058744Z", "completed_at": "2022-09-07T05:20:36.062899Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.063269Z", "completed_at": "2022-09-07T05:20:36.063275Z"}], "thread_id": "Thread-1", "execution_time": 0.0051958560943603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.064422Z", "completed_at": "2022-09-07T05:20:36.069180Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.069470Z", "completed_at": "2022-09-07T05:20:36.069477Z"}], "thread_id": "Thread-1", "execution_time": 0.005708932876586914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced.f84924f13b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.070621Z", "completed_at": "2022-09-07T05:20:36.074739Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.075136Z", "completed_at": "2022-09-07T05:20:36.075144Z"}], "thread_id": "Thread-1", "execution_time": 0.005223274230957031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.076518Z", "completed_at": "2022-09-07T05:20:36.083592Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.083959Z", "completed_at": "2022-09-07T05:20:36.083970Z"}], "thread_id": "Thread-1", "execution_time": 0.008241891860961914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.085621Z", "completed_at": "2022-09-07T05:20:36.091842Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.092147Z", "completed_at": "2022-09-07T05:20:36.092156Z"}], "thread_id": "Thread-1", "execution_time": 0.007376909255981445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour.1a4ef6182a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.093508Z", "completed_at": "2022-09-07T05:20:36.097983Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.098337Z", "completed_at": "2022-09-07T05:20:36.098344Z"}], "thread_id": "Thread-1", "execution_time": 0.005635261535644531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.099573Z", "completed_at": "2022-09-07T05:20:36.104124Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.104410Z", "completed_at": "2022-09-07T05:20:36.104418Z"}], "thread_id": "Thread-1", "execution_time": 0.005502223968505859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.105615Z", "completed_at": "2022-09-07T05:20:36.191188Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.191748Z", "completed_at": "2022-09-07T05:20:36.191762Z"}], "thread_id": "Thread-1", "execution_time": 0.08700013160705566, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced.200b225a27"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.193673Z", "completed_at": "2022-09-07T05:20:36.200208Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.200646Z", "completed_at": "2022-09-07T05:20:36.200656Z"}], "thread_id": "Thread-1", "execution_time": 0.007971048355102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.202364Z", "completed_at": "2022-09-07T05:20:36.208518Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.208945Z", "completed_at": "2022-09-07T05:20:36.208955Z"}], "thread_id": "Thread-1", "execution_time": 0.0075380802154541016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.210618Z", "completed_at": "2022-09-07T05:20:36.217273Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.217664Z", "completed_at": "2022-09-07T05:20:36.217674Z"}], "thread_id": "Thread-1", "execution_time": 0.007945060729980469, "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_ad_squad_id__date_hour.774a407e69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.219149Z", "completed_at": "2022-09-07T05:20:36.225255Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.225615Z", "completed_at": "2022-09-07T05:20:36.225624Z"}], "thread_id": "Thread-1", "execution_time": 0.007299184799194336, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.227016Z", "completed_at": "2022-09-07T05:20:36.231898Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.232250Z", "completed_at": "2022-09-07T05:20:36.232258Z"}], "thread_id": "Thread-1", "execution_time": 0.0060329437255859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.233638Z", "completed_at": "2022-09-07T05:20:36.242925Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.243284Z", "completed_at": "2022-09-07T05:20:36.243293Z"}], "thread_id": "Thread-1", "execution_time": 0.010443925857543945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.244846Z", "completed_at": "2022-09-07T05:20:36.253960Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.254321Z", "completed_at": "2022-09-07T05:20:36.254329Z"}], "thread_id": "Thread-1", "execution_time": 0.010380029678344727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.255730Z", "completed_at": "2022-09-07T05:20:36.260601Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.260888Z", "completed_at": "2022-09-07T05:20:36.260895Z"}], "thread_id": "Thread-1", "execution_time": 0.0059587955474853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced.31b9fb6777"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.262046Z", "completed_at": "2022-09-07T05:20:36.266153Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.266452Z", "completed_at": "2022-09-07T05:20:36.266458Z"}], "thread_id": "Thread-1", "execution_time": 0.00507807731628418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.267611Z", "completed_at": "2022-09-07T05:20:36.271702Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.272125Z", "completed_at": "2022-09-07T05:20:36.272132Z"}], "thread_id": "Thread-1", "execution_time": 0.005182027816772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.273394Z", "completed_at": "2022-09-07T05:20:36.280944Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.281306Z", "completed_at": "2022-09-07T05:20:36.281316Z"}], "thread_id": "Thread-1", "execution_time": 0.008769035339355469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.283090Z", "completed_at": "2022-09-07T05:20:36.289915Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.290230Z", "completed_at": "2022-09-07T05:20:36.290240Z"}], "thread_id": "Thread-1", "execution_time": 0.007990837097167969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour.64293afa9c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.291485Z", "completed_at": "2022-09-07T05:20:36.295972Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.296260Z", "completed_at": "2022-09-07T05:20:36.296266Z"}], "thread_id": "Thread-1", "execution_time": 0.00544285774230957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.297427Z", "completed_at": "2022-09-07T05:20:36.301641Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.301939Z", "completed_at": "2022-09-07T05:20:36.301946Z"}], "thread_id": "Thread-1", "execution_time": 0.00518488883972168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.303101Z", "completed_at": "2022-09-07T05:20:36.310082Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.310378Z", "completed_at": "2022-09-07T05:20:36.310386Z"}], "thread_id": "Thread-1", "execution_time": 0.007953882217407227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced.c6f6c78b99"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.311565Z", "completed_at": "2022-09-07T05:20:36.315731Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.316028Z", "completed_at": "2022-09-07T05:20:36.316035Z"}], "thread_id": "Thread-1", "execution_time": 0.005259037017822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.317191Z", "completed_at": "2022-09-07T05:20:36.321374Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.321664Z", "completed_at": "2022-09-07T05:20:36.321671Z"}], "thread_id": "Thread-1", "execution_time": 0.0051381587982177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.336195Z", "completed_at": "2022-09-07T05:20:36.341868Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.342166Z", "completed_at": "2022-09-07T05:20:36.342174Z"}], "thread_id": "Thread-1", "execution_time": 0.006757020950317383, "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_creative_id__param_key__updated_at.cc3fa6acbe"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.343347Z", "completed_at": "2022-09-07T05:20:36.347637Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.347925Z", "completed_at": "2022-09-07T05:20:36.347933Z"}], "thread_id": "Thread-1", "execution_time": 0.0052530765533447266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.349199Z", "completed_at": "2022-09-07T05:20:36.354143Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.354426Z", "completed_at": "2022-09-07T05:20:36.354433Z"}], "thread_id": "Thread-1", "execution_time": 0.006085872650146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at.cec78c01de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.355559Z", "completed_at": "2022-09-07T05:20:36.361031Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.361575Z", "completed_at": "2022-09-07T05:20:36.361582Z"}], "thread_id": "Thread-1", "execution_time": 0.006784200668334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.363451Z", "completed_at": "2022-09-07T05:20:36.368443Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.368724Z", "completed_at": "2022-09-07T05:20:36.368731Z"}], "thread_id": "Thread-1", "execution_time": 0.006169795989990234, "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_ad_group_id__stat_time_hour.1aeaeb71ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.369983Z", "completed_at": "2022-09-07T05:20:36.374220Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.374512Z", "completed_at": "2022-09-07T05:20:36.374519Z"}], "thread_id": "Thread-1", "execution_time": 0.005413055419921875, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.375640Z", "completed_at": "2022-09-07T05:20:36.379626Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.379911Z", "completed_at": "2022-09-07T05:20:36.379918Z"}], "thread_id": "Thread-1", "execution_time": 0.004920005798339844, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.381084Z", "completed_at": "2022-09-07T05:20:36.387393Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.387763Z", "completed_at": "2022-09-07T05:20:36.387771Z"}], "thread_id": "Thread-1", "execution_time": 0.007495880126953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at.66b86b4dd1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.389081Z", "completed_at": "2022-09-07T05:20:36.394629Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.395119Z", "completed_at": "2022-09-07T05:20:36.395130Z"}], "thread_id": "Thread-1", "execution_time": 0.006916999816894531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.397064Z", "completed_at": "2022-09-07T05:20:36.402458Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.402743Z", "completed_at": "2022-09-07T05:20:36.402750Z"}], "thread_id": "Thread-1", "execution_time": 0.006471872329711914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour.e70f8cef6d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.403882Z", "completed_at": "2022-09-07T05:20:36.408227Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.408509Z", "completed_at": "2022-09-07T05:20:36.408515Z"}], "thread_id": "Thread-1", "execution_time": 0.005263805389404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.409634Z", "completed_at": "2022-09-07T05:20:36.414904Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.415187Z", "completed_at": "2022-09-07T05:20:36.415194Z"}], "thread_id": "Thread-1", "execution_time": 0.006305694580078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.416315Z", "completed_at": "2022-09-07T05:20:36.422681Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.422971Z", "completed_at": "2022-09-07T05:20:36.422978Z"}], "thread_id": "Thread-1", "execution_time": 0.007412910461425781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.424271Z", "completed_at": "2022-09-07T05:20:36.428380Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.428671Z", "completed_at": "2022-09-07T05:20:36.428678Z"}], "thread_id": "Thread-1", "execution_time": 0.005160808563232422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.429797Z", "completed_at": "2022-09-07T05:20:36.435654Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.435937Z", "completed_at": "2022-09-07T05:20:36.435944Z"}], "thread_id": "Thread-1", "execution_time": 0.006893157958984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.437048Z", "completed_at": "2022-09-07T05:20:36.446428Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.446761Z", "completed_at": "2022-09-07T05:20:36.446768Z"}], "thread_id": "Thread-1", "execution_time": 0.010355949401855469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.448118Z", "completed_at": "2022-09-07T05:20:36.456194Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.456540Z", "completed_at": "2022-09-07T05:20:36.456547Z"}], "thread_id": "Thread-1", "execution_time": 0.009250164031982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.457944Z", "completed_at": "2022-09-07T05:20:36.466049Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.466346Z", "completed_at": "2022-09-07T05:20:36.466353Z"}], "thread_id": "Thread-1", "execution_time": 0.009176969528198242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.467714Z", "completed_at": "2022-09-07T05:20:36.473968Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.474263Z", "completed_at": "2022-09-07T05:20:36.474271Z"}], "thread_id": "Thread-1", "execution_time": 0.007324934005737305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at.72bf07011b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.475493Z", "completed_at": "2022-09-07T05:20:36.479722Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.480011Z", "completed_at": "2022-09-07T05:20:36.480018Z"}], "thread_id": "Thread-1", "execution_time": 0.005182981491088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.481175Z", "completed_at": "2022-09-07T05:20:36.487720Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.488017Z", "completed_at": "2022-09-07T05:20:36.488025Z"}], "thread_id": "Thread-1", "execution_time": 0.007516145706176758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.489443Z", "completed_at": "2022-09-07T05:20:36.495416Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.495753Z", "completed_at": "2022-09-07T05:20:36.495763Z"}], "thread_id": "Thread-1", "execution_time": 0.007197856903076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour.8e4a1e4b34"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.497181Z", "completed_at": "2022-09-07T05:20:36.503204Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.503572Z", "completed_at": "2022-09-07T05:20:36.503583Z"}], "thread_id": "Thread-1", "execution_time": 0.0072171688079833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.505071Z", "completed_at": "2022-09-07T05:20:36.510360Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.510659Z", "completed_at": "2022-09-07T05:20:36.510667Z"}], "thread_id": "Thread-1", "execution_time": 0.006356954574584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.511872Z", "completed_at": "2022-09-07T05:20:36.517164Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.517459Z", "completed_at": "2022-09-07T05:20:36.517466Z"}], "thread_id": "Thread-1", "execution_time": 0.006265163421630859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp.2725b1ff40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.518636Z", "completed_at": "2022-09-07T05:20:36.524162Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.524462Z", "completed_at": "2022-09-07T05:20:36.524470Z"}], "thread_id": "Thread-1", "execution_time": 0.0065097808837890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.525634Z", "completed_at": "2022-09-07T05:20:36.530612Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.530907Z", "completed_at": "2022-09-07T05:20:36.530914Z"}], "thread_id": "Thread-1", "execution_time": 0.0059452056884765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp.c7054e5b55"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.532066Z", "completed_at": "2022-09-07T05:20:36.536402Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.536706Z", "completed_at": "2022-09-07T05:20:36.536714Z"}], "thread_id": "Thread-1", "execution_time": 0.005318164825439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.537879Z", "completed_at": "2022-09-07T05:20:36.544502Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.544801Z", "completed_at": "2022-09-07T05:20:36.544808Z"}], "thread_id": "Thread-1", "execution_time": 0.007596015930175781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.546197Z", "completed_at": "2022-09-07T05:20:36.552856Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.553352Z", "completed_at": "2022-09-07T05:20:36.553360Z"}], "thread_id": "Thread-1", "execution_time": 0.00807332992553711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement.71102d8fdb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.554801Z", "completed_at": "2022-09-07T05:20:36.559096Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.559463Z", "completed_at": "2022-09-07T05:20:36.559470Z"}], "thread_id": "Thread-1", "execution_time": 0.0053288936614990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.560599Z", "completed_at": "2022-09-07T05:20:36.565092Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.565414Z", "completed_at": "2022-09-07T05:20:36.565421Z"}], "thread_id": "Thread-1", "execution_time": 0.005572795867919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.566773Z", "completed_at": "2022-09-07T05:20:36.570764Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.571046Z", "completed_at": "2022-09-07T05:20:36.571053Z"}], "thread_id": "Thread-1", "execution_time": 0.00506901741027832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.572205Z", "completed_at": "2022-09-07T05:20:36.578131Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.578426Z", "completed_at": "2022-09-07T05:20:36.578433Z"}], "thread_id": "Thread-1", "execution_time": 0.006976127624511719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp.b12672e022"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.579751Z", "completed_at": "2022-09-07T05:20:36.583831Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.584115Z", "completed_at": "2022-09-07T05:20:36.584122Z"}], "thread_id": "Thread-1", "execution_time": 0.005021095275878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.585258Z", "completed_at": "2022-09-07T05:20:36.593316Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.593729Z", "completed_at": "2022-09-07T05:20:36.593742Z"}], "thread_id": "Thread-1", "execution_time": 0.009261846542358398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.595770Z", "completed_at": "2022-09-07T05:20:36.604160Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.604459Z", "completed_at": "2022-09-07T05:20:36.604469Z"}], "thread_id": "Thread-1", "execution_time": 0.009572029113769531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement.251e077e6b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.605677Z", "completed_at": "2022-09-07T05:20:36.610161Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.610449Z", "completed_at": "2022-09-07T05:20:36.610456Z"}], "thread_id": "Thread-1", "execution_time": 0.005438804626464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.611591Z", "completed_at": "2022-09-07T05:20:36.616111Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.616395Z", "completed_at": "2022-09-07T05:20:36.616403Z"}], "thread_id": "Thread-1", "execution_time": 0.0056209564208984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.617806Z", "completed_at": "2022-09-07T05:20:36.621922Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.622210Z", "completed_at": "2022-09-07T05:20:36.622218Z"}], "thread_id": "Thread-1", "execution_time": 0.005064964294433594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.623414Z", "completed_at": "2022-09-07T05:20:36.629415Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.629709Z", "completed_at": "2022-09-07T05:20:36.629717Z"}], "thread_id": "Thread-1", "execution_time": 0.007233619689941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp.dddc4a21ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.631236Z", "completed_at": "2022-09-07T05:20:36.635510Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.635795Z", "completed_at": "2022-09-07T05:20:36.635802Z"}], "thread_id": "Thread-1", "execution_time": 0.0052165985107421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.637162Z", "completed_at": "2022-09-07T05:20:36.643333Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.643623Z", "completed_at": "2022-09-07T05:20:36.643630Z"}], "thread_id": "Thread-1", "execution_time": 0.0072269439697265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.645084Z", "completed_at": "2022-09-07T05:20:36.650351Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.650761Z", "completed_at": "2022-09-07T05:20:36.650768Z"}], "thread_id": "Thread-1", "execution_time": 0.00660395622253418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement.7028206273"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.651907Z", "completed_at": "2022-09-07T05:20:36.657407Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.657713Z", "completed_at": "2022-09-07T05:20:36.657721Z"}], "thread_id": "Thread-1", "execution_time": 0.0065762996673583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.659077Z", "completed_at": "2022-09-07T05:20:36.663440Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.663729Z", "completed_at": "2022-09-07T05:20:36.663736Z"}], "thread_id": "Thread-1", "execution_time": 0.005315065383911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.664927Z", "completed_at": "2022-09-07T05:20:36.669494Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.669793Z", "completed_at": "2022-09-07T05:20:36.669800Z"}], "thread_id": "Thread-1", "execution_time": 0.0055849552154541016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.671118Z", "completed_at": "2022-09-07T05:20:36.682969Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.683272Z", "completed_at": "2022-09-07T05:20:36.683281Z"}], "thread_id": "Thread-1", "execution_time": 0.012897014617919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.684669Z", "completed_at": "2022-09-07T05:20:36.688981Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.689279Z", "completed_at": "2022-09-07T05:20:36.689286Z"}], "thread_id": "Thread-1", "execution_time": 0.005290985107421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.690424Z", "completed_at": "2022-09-07T05:20:36.694454Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.694741Z", "completed_at": "2022-09-07T05:20:36.694748Z"}], "thread_id": "Thread-1", "execution_time": 0.005128145217895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.696245Z", "completed_at": "2022-09-07T05:20:36.708599Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.708913Z", "completed_at": "2022-09-07T05:20:36.708922Z"}], "thread_id": "Thread-1", "execution_time": 0.013480901718139648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.710456Z", "completed_at": "2022-09-07T05:20:36.720686Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.721097Z", "completed_at": "2022-09-07T05:20:36.721107Z"}], "thread_id": "Thread-1", "execution_time": 0.011581897735595703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id.eab5b85d74"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.722604Z", "completed_at": "2022-09-07T05:20:36.727629Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.727984Z", "completed_at": "2022-09-07T05:20:36.727993Z"}], "thread_id": "Thread-1", "execution_time": 0.0061798095703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.729317Z", "completed_at": "2022-09-07T05:20:36.734050Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.734403Z", "completed_at": "2022-09-07T05:20:36.734411Z"}], "thread_id": "Thread-1", "execution_time": 0.005850791931152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.735694Z", "completed_at": "2022-09-07T05:20:36.741559Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.741859Z", "completed_at": "2022-09-07T05:20:36.741866Z"}], "thread_id": "Thread-1", "execution_time": 0.006891965866088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day.19d180bab9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.743001Z", "completed_at": "2022-09-07T05:20:36.747985Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.748276Z", "completed_at": "2022-09-07T05:20:36.748283Z"}], "thread_id": "Thread-1", "execution_time": 0.005947113037109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.749406Z", "completed_at": "2022-09-07T05:20:36.753421Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.753722Z", "completed_at": "2022-09-07T05:20:36.753729Z"}], "thread_id": "Thread-1", "execution_time": 0.005048036575317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.755240Z", "completed_at": "2022-09-07T05:20:36.761093Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.761382Z", "completed_at": "2022-09-07T05:20:36.761388Z"}], "thread_id": "Thread-1", "execution_time": 0.007152080535888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.762503Z", "completed_at": "2022-09-07T05:20:36.766635Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.766931Z", "completed_at": "2022-09-07T05:20:36.766938Z"}], "thread_id": "Thread-1", "execution_time": 0.005094289779663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.768063Z", "completed_at": "2022-09-07T05:20:36.773186Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.773479Z", "completed_at": "2022-09-07T05:20:36.773487Z"}], "thread_id": "Thread-1", "execution_time": 0.006083250045776367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.774671Z", "completed_at": "2022-09-07T05:20:36.779793Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.780092Z", "completed_at": "2022-09-07T05:20:36.780099Z"}], "thread_id": "Thread-1", "execution_time": 0.006093025207519531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day.647e56213f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.781232Z", "completed_at": "2022-09-07T05:20:36.785728Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.786018Z", "completed_at": "2022-09-07T05:20:36.786025Z"}], "thread_id": "Thread-1", "execution_time": 0.0054509639739990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.787152Z", "completed_at": "2022-09-07T05:20:36.791993Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.792290Z", "completed_at": "2022-09-07T05:20:36.792297Z"}], "thread_id": "Thread-1", "execution_time": 0.005806922912597656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.793426Z", "completed_at": "2022-09-07T05:20:36.872089Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.872589Z", "completed_at": "2022-09-07T05:20:36.872603Z"}], "thread_id": "Thread-1", "execution_time": 0.08002185821533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.874463Z", "completed_at": "2022-09-07T05:20:36.881005Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.881432Z", "completed_at": "2022-09-07T05:20:36.881442Z"}], "thread_id": "Thread-1", "execution_time": 0.008065938949584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.883114Z", "completed_at": "2022-09-07T05:20:36.889024Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.889436Z", "completed_at": "2022-09-07T05:20:36.889446Z"}], "thread_id": "Thread-1", "execution_time": 0.007280111312866211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.891078Z", "completed_at": "2022-09-07T05:20:36.899129Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.899556Z", "completed_at": "2022-09-07T05:20:36.899566Z"}], "thread_id": "Thread-1", "execution_time": 0.009428977966308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day.8bc84fccc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.901141Z", "completed_at": "2022-09-07T05:20:36.906462Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.906810Z", "completed_at": "2022-09-07T05:20:36.906819Z"}], "thread_id": "Thread-1", "execution_time": 0.006525278091430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.908164Z", "completed_at": "2022-09-07T05:20:36.913079Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.913439Z", "completed_at": "2022-09-07T05:20:36.913448Z"}], "thread_id": "Thread-1", "execution_time": 0.0060770511627197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.914803Z", "completed_at": "2022-09-07T05:20:36.920898Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.921303Z", "completed_at": "2022-09-07T05:20:36.921316Z"}], "thread_id": "Thread-1", "execution_time": 0.0073778629302978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day.e60fe79ec4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.923069Z", "completed_at": "2022-09-07T05:20:36.930223Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.930601Z", "completed_at": "2022-09-07T05:20:36.930612Z"}], "thread_id": "Thread-1", "execution_time": 0.008502960205078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.932159Z", "completed_at": "2022-09-07T05:20:36.937923Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.938299Z", "completed_at": "2022-09-07T05:20:36.938309Z"}], "thread_id": "Thread-1", "execution_time": 0.007006168365478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.939749Z", "completed_at": "2022-09-07T05:20:36.945909Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.946265Z", "completed_at": "2022-09-07T05:20:36.946273Z"}], "thread_id": "Thread-1", "execution_time": 0.007328033447265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id.5a94423e40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.947643Z", "completed_at": "2022-09-07T05:20:36.952652Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.953019Z", "completed_at": "2022-09-07T05:20:36.953028Z"}], "thread_id": "Thread-1", "execution_time": 0.0061872005462646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.954434Z", "completed_at": "2022-09-07T05:20:36.962732Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.963139Z", "completed_at": "2022-09-07T05:20:36.963148Z"}], "thread_id": "Thread-1", "execution_time": 0.009500980377197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.964503Z", "completed_at": "2022-09-07T05:20:36.969457Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.969772Z", "completed_at": "2022-09-07T05:20:36.969780Z"}], "thread_id": "Thread-1", "execution_time": 0.006028652191162109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.971021Z", "completed_at": "2022-09-07T05:20:36.976728Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.977027Z", "completed_at": "2022-09-07T05:20:36.977034Z"}], "thread_id": "Thread-1", "execution_time": 0.006707906723022461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id.3dd4da872f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.978171Z", "completed_at": "2022-09-07T05:20:36.982418Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.982710Z", "completed_at": "2022-09-07T05:20:36.982718Z"}], "thread_id": "Thread-1", "execution_time": 0.005205869674682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.983839Z", "completed_at": "2022-09-07T05:20:36.990535Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.990838Z", "completed_at": "2022-09-07T05:20:36.990846Z"}], "thread_id": "Thread-1", "execution_time": 0.007673978805541992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id.7cd75107e6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.992000Z", "completed_at": "2022-09-07T05:20:36.996880Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:36.997171Z", "completed_at": "2022-09-07T05:20:36.997178Z"}], "thread_id": "Thread-1", "execution_time": 0.00583195686340332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:36.998314Z", "completed_at": "2022-09-07T05:20:37.009789Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.010079Z", "completed_at": "2022-09-07T05:20:37.010086Z"}], "thread_id": "Thread-1", "execution_time": 0.012427091598510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.int_facebook_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.011307Z", "completed_at": "2022-09-07T05:20:37.017354Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.017645Z", "completed_at": "2022-09-07T05:20:37.017652Z"}], "thread_id": "Thread-1", "execution_time": 0.007085084915161133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type.ba044777d3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.018779Z", "completed_at": "2022-09-07T05:20:37.023345Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.023646Z", "completed_at": "2022-09-07T05:20:37.023654Z"}], "thread_id": "Thread-1", "execution_time": 0.005590915679931641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.024989Z", "completed_at": "2022-09-07T05:20:37.031168Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.031471Z", "completed_at": "2022-09-07T05:20:37.031481Z"}], "thread_id": "Thread-1", "execution_time": 0.007285118103027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day.c52089771e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.032536Z", "completed_at": "2022-09-07T05:20:37.037054Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.037347Z", "completed_at": "2022-09-07T05:20:37.037354Z"}], "thread_id": "Thread-1", "execution_time": 0.00545811653137207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.038478Z", "completed_at": "2022-09-07T05:20:37.044480Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.044783Z", "completed_at": "2022-09-07T05:20:37.044790Z"}], "thread_id": "Thread-1", "execution_time": 0.006978034973144531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day.7c8e1c1a2f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.045937Z", "completed_at": "2022-09-07T05:20:37.050023Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.050301Z", "completed_at": "2022-09-07T05:20:37.050308Z"}], "thread_id": "Thread-1", "execution_time": 0.005012035369873047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.051398Z", "completed_at": "2022-09-07T05:20:37.056493Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.056783Z", "completed_at": "2022-09-07T05:20:37.056790Z"}], "thread_id": "Thread-1", "execution_time": 0.006041049957275391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day.fe37ea1a7b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.057885Z", "completed_at": "2022-09-07T05:20:37.061854Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.062255Z", "completed_at": "2022-09-07T05:20:37.062262Z"}], "thread_id": "Thread-1", "execution_time": 0.005022287368774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.063359Z", "completed_at": "2022-09-07T05:20:37.069580Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.069874Z", "completed_at": "2022-09-07T05:20:37.069881Z"}], "thread_id": "Thread-1", "execution_time": 0.007250785827636719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day.a59b8e007f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.070984Z", "completed_at": "2022-09-07T05:20:37.074957Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.075241Z", "completed_at": "2022-09-07T05:20:37.075247Z"}], "thread_id": "Thread-1", "execution_time": 0.004905223846435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.076343Z", "completed_at": "2022-09-07T05:20:37.081858Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.082484Z", "completed_at": "2022-09-07T05:20:37.082491Z"}], "thread_id": "Thread-1", "execution_time": 0.006966829299926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.084420Z", "completed_at": "2022-09-07T05:20:37.089714Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.089997Z", "completed_at": "2022-09-07T05:20:37.090004Z"}], "thread_id": "Thread-1", "execution_time": 0.006574869155883789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.091096Z", "completed_at": "2022-09-07T05:20:37.096322Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.096615Z", "completed_at": "2022-09-07T05:20:37.096622Z"}], "thread_id": "Thread-1", "execution_time": 0.006172895431518555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day.214ff3497d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.097723Z", "completed_at": "2022-09-07T05:20:37.101716Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.102166Z", "completed_at": "2022-09-07T05:20:37.102173Z"}], "thread_id": "Thread-1", "execution_time": 0.005308866500854492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.103759Z", "completed_at": "2022-09-07T05:20:37.108810Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.109103Z", "completed_at": "2022-09-07T05:20:37.109111Z"}], "thread_id": "Thread-1", "execution_time": 0.005998134613037109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id.a2dcede91c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.110207Z", "completed_at": "2022-09-07T05:20:37.115184Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.115469Z", "completed_at": "2022-09-07T05:20:37.115476Z"}], "thread_id": "Thread-1", "execution_time": 0.005908012390136719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.116567Z", "completed_at": "2022-09-07T05:20:37.120788Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.121081Z", "completed_at": "2022-09-07T05:20:37.121088Z"}], "thread_id": "Thread-1", "execution_time": 0.00516819953918457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.122203Z", "completed_at": "2022-09-07T05:20:37.127331Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.127615Z", "completed_at": "2022-09-07T05:20:37.127622Z"}], "thread_id": "Thread-1", "execution_time": 0.006063938140869141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id.f60989a7a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.128722Z", "completed_at": "2022-09-07T05:20:37.132745Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.133151Z", "completed_at": "2022-09-07T05:20:37.133159Z"}], "thread_id": "Thread-1", "execution_time": 0.005236148834228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.134404Z", "completed_at": "2022-09-07T05:20:37.139453Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.139783Z", "completed_at": "2022-09-07T05:20:37.139790Z"}], "thread_id": "Thread-1", "execution_time": 0.006029844284057617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.140899Z", "completed_at": "2022-09-07T05:20:37.146244Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.146756Z", "completed_at": "2022-09-07T05:20:37.146781Z"}], "thread_id": "Thread-1", "execution_time": 0.006685972213745117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.148883Z", "completed_at": "2022-09-07T05:20:37.153476Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.153826Z", "completed_at": "2022-09-07T05:20:37.153837Z"}], "thread_id": "Thread-1", "execution_time": 0.006039857864379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.155315Z", "completed_at": "2022-09-07T05:20:37.161106Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.161589Z", "completed_at": "2022-09-07T05:20:37.161600Z"}], "thread_id": "Thread-1", "execution_time": 0.0073049068450927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.163262Z", "completed_at": "2022-09-07T05:20:37.173776Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.174206Z", "completed_at": "2022-09-07T05:20:37.174216Z"}], "thread_id": "Thread-1", "execution_time": 0.01184391975402832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.175733Z", "completed_at": "2022-09-07T05:20:37.181443Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.181818Z", "completed_at": "2022-09-07T05:20:37.181827Z"}], "thread_id": "Thread-1", "execution_time": 0.0068721771240234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.183390Z", "completed_at": "2022-09-07T05:20:37.188138Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.188425Z", "completed_at": "2022-09-07T05:20:37.188432Z"}], "thread_id": "Thread-1", "execution_time": 0.0056951045989990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.189630Z", "completed_at": "2022-09-07T05:20:37.195918Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.196205Z", "completed_at": "2022-09-07T05:20:37.196212Z"}], "thread_id": "Thread-1", "execution_time": 0.007229328155517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.197361Z", "completed_at": "2022-09-07T05:20:37.203345Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.203641Z", "completed_at": "2022-09-07T05:20:37.203649Z"}], "thread_id": "Thread-1", "execution_time": 0.006948947906494141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.204812Z", "completed_at": "2022-09-07T05:20:37.209122Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.209410Z", "completed_at": "2022-09-07T05:20:37.209417Z"}], "thread_id": "Thread-1", "execution_time": 0.005251169204711914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.210526Z", "completed_at": "2022-09-07T05:20:37.216809Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.217106Z", "completed_at": "2022-09-07T05:20:37.217113Z"}], "thread_id": "Thread-1", "execution_time": 0.007241964340209961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.218304Z", "completed_at": "2022-09-07T05:20:37.223633Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.223920Z", "completed_at": "2022-09-07T05:20:37.223927Z"}], "thread_id": "Thread-1", "execution_time": 0.006352901458740234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.225043Z", "completed_at": "2022-09-07T05:20:37.232086Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.232420Z", "completed_at": "2022-09-07T05:20:37.232427Z"}], "thread_id": "Thread-1", "execution_time": 0.00804901123046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.233705Z", "completed_at": "2022-09-07T05:20:37.237947Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.238232Z", "completed_at": "2022-09-07T05:20:37.238239Z"}], "thread_id": "Thread-1", "execution_time": 0.005343914031982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.239345Z", "completed_at": "2022-09-07T05:20:37.246922Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.247219Z", "completed_at": "2022-09-07T05:20:37.247226Z"}], "thread_id": "Thread-1", "execution_time": 0.008532047271728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.248355Z", "completed_at": "2022-09-07T05:20:37.253438Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.253728Z", "completed_at": "2022-09-07T05:20:37.253735Z"}], "thread_id": "Thread-1", "execution_time": 0.006138324737548828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.255045Z", "completed_at": "2022-09-07T05:20:37.261719Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.262010Z", "completed_at": "2022-09-07T05:20:37.262017Z"}], "thread_id": "Thread-1", "execution_time": 0.007623910903930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.263203Z", "completed_at": "2022-09-07T05:20:37.267436Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.267771Z", "completed_at": "2022-09-07T05:20:37.267779Z"}], "thread_id": "Thread-1", "execution_time": 0.005315065383911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.268898Z", "completed_at": "2022-09-07T05:20:37.276412Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.276865Z", "completed_at": "2022-09-07T05:20:37.276875Z"}], "thread_id": "Thread-1", "execution_time": 0.008691072463989258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.278100Z", "completed_at": "2022-09-07T05:20:37.283683Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.283986Z", "completed_at": "2022-09-07T05:20:37.283993Z"}], "thread_id": "Thread-1", "execution_time": 0.006569862365722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.285130Z", "completed_at": "2022-09-07T05:20:37.292789Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.293084Z", "completed_at": "2022-09-07T05:20:37.293091Z"}], "thread_id": "Thread-1", "execution_time": 0.008625268936157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.294220Z", "completed_at": "2022-09-07T05:20:37.298409Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.298708Z", "completed_at": "2022-09-07T05:20:37.298716Z"}], "thread_id": "Thread-1", "execution_time": 0.0051610469818115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.341012Z", "completed_at": "2022-09-07T05:20:37.349214Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.349513Z", "completed_at": "2022-09-07T05:20:37.349521Z"}], "thread_id": "Thread-1", "execution_time": 0.009301185607910156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.350771Z", "completed_at": "2022-09-07T05:20:37.354990Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.355272Z", "completed_at": "2022-09-07T05:20:37.355279Z"}], "thread_id": "Thread-1", "execution_time": 0.005151033401489258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.356556Z", "completed_at": "2022-09-07T05:20:37.364010Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.364385Z", "completed_at": "2022-09-07T05:20:37.364395Z"}], "thread_id": "Thread-1", "execution_time": 0.008598089218139648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day.990badbc11"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.365579Z", "completed_at": "2022-09-07T05:20:37.370172Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.370507Z", "completed_at": "2022-09-07T05:20:37.370515Z"}], "thread_id": "Thread-1", "execution_time": 0.0055999755859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.371644Z", "completed_at": "2022-09-07T05:20:37.375676Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.376135Z", "completed_at": "2022-09-07T05:20:37.376142Z"}], "thread_id": "Thread-1", "execution_time": 0.005145072937011719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.377240Z", "completed_at": "2022-09-07T05:20:37.382653Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.383081Z", "completed_at": "2022-09-07T05:20:37.383089Z"}], "thread_id": "Thread-1", "execution_time": 0.0065419673919677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.384398Z", "completed_at": "2022-09-07T05:20:37.391365Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.391744Z", "completed_at": "2022-09-07T05:20:37.391756Z"}], "thread_id": "Thread-1", "execution_time": 0.008179903030395508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.393749Z", "completed_at": "2022-09-07T05:20:37.399531Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.399887Z", "completed_at": "2022-09-07T05:20:37.399898Z"}], "thread_id": "Thread-1", "execution_time": 0.0071299076080322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.401432Z", "completed_at": "2022-09-07T05:20:37.407155Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.407448Z", "completed_at": "2022-09-07T05:20:37.407455Z"}], "thread_id": "Thread-1", "execution_time": 0.006865024566650391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day.b5752d5279"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.408566Z", "completed_at": "2022-09-07T05:20:37.413579Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.413989Z", "completed_at": "2022-09-07T05:20:37.413996Z"}], "thread_id": "Thread-1", "execution_time": 0.006077289581298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.415086Z", "completed_at": "2022-09-07T05:20:37.419911Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.420213Z", "completed_at": "2022-09-07T05:20:37.420220Z"}], "thread_id": "Thread-1", "execution_time": 0.005779743194580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.440717Z", "completed_at": "2022-09-07T05:20:37.446530Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.446815Z", "completed_at": "2022-09-07T05:20:37.446822Z"}], "thread_id": "Thread-1", "execution_time": 0.006745815277099609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.447911Z", "completed_at": "2022-09-07T05:20:37.452805Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.453101Z", "completed_at": "2022-09-07T05:20:37.453108Z"}], "thread_id": "Thread-1", "execution_time": 0.005860090255737305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.454216Z", "completed_at": "2022-09-07T05:20:37.458226Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.458516Z", "completed_at": "2022-09-07T05:20:37.458523Z"}], "thread_id": "Thread-1", "execution_time": 0.0049591064453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.459626Z", "completed_at": "2022-09-07T05:20:37.465594Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.465890Z", "completed_at": "2022-09-07T05:20:37.465897Z"}], "thread_id": "Thread-1", "execution_time": 0.0069310665130615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.466997Z", "completed_at": "2022-09-07T05:20:37.471104Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.471395Z", "completed_at": "2022-09-07T05:20:37.471402Z"}], "thread_id": "Thread-1", "execution_time": 0.005057096481323242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.472506Z", "completed_at": "2022-09-07T05:20:37.477320Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.477720Z", "completed_at": "2022-09-07T05:20:37.477727Z"}], "thread_id": "Thread-1", "execution_time": 0.005953073501586914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.479085Z", "completed_at": "2022-09-07T05:20:37.485469Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.485761Z", "completed_at": "2022-09-07T05:20:37.485768Z"}], "thread_id": "Thread-1", "execution_time": 0.007390260696411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.486875Z", "completed_at": "2022-09-07T05:20:37.490926Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.491225Z", "completed_at": "2022-09-07T05:20:37.491232Z"}], "thread_id": "Thread-1", "execution_time": 0.005018949508666992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.492337Z", "completed_at": "2022-09-07T05:20:37.497288Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.497721Z", "completed_at": "2022-09-07T05:20:37.497729Z"}], "thread_id": "Thread-1", "execution_time": 0.006062984466552734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.498877Z", "completed_at": "2022-09-07T05:20:37.504677Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.504977Z", "completed_at": "2022-09-07T05:20:37.504984Z"}], "thread_id": "Thread-1", "execution_time": 0.006775856018066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day.da5545b8e6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.506099Z", "completed_at": "2022-09-07T05:20:37.510171Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.510571Z", "completed_at": "2022-09-07T05:20:37.510579Z"}], "thread_id": "Thread-1", "execution_time": 0.005196094512939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.511924Z", "completed_at": "2022-09-07T05:20:37.516064Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.516353Z", "completed_at": "2022-09-07T05:20:37.516360Z"}], "thread_id": "Thread-1", "execution_time": 0.0050961971282958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.517388Z", "completed_at": "2022-09-07T05:20:37.523120Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.523418Z", "completed_at": "2022-09-07T05:20:37.523425Z"}], "thread_id": "Thread-1", "execution_time": 0.006680011749267578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day.027a518f3c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.524530Z", "completed_at": "2022-09-07T05:20:37.627546Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.627985Z", "completed_at": "2022-09-07T05:20:37.627997Z"}], "thread_id": "Thread-1", "execution_time": 0.10425806045532227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.629668Z", "completed_at": "2022-09-07T05:20:37.635530Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.635933Z", "completed_at": "2022-09-07T05:20:37.635942Z"}], "thread_id": "Thread-1", "execution_time": 0.007209062576293945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.637448Z", "completed_at": "2022-09-07T05:20:37.643727Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.644080Z", "completed_at": "2022-09-07T05:20:37.644088Z"}], "thread_id": "Thread-1", "execution_time": 0.0075528621673583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day.dfc5f7da4e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.645393Z", "completed_at": "2022-09-07T05:20:37.651234Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.651582Z", "completed_at": "2022-09-07T05:20:37.651591Z"}], "thread_id": "Thread-1", "execution_time": 0.006964921951293945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.652906Z", "completed_at": "2022-09-07T05:20:37.657728Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.658090Z", "completed_at": "2022-09-07T05:20:37.658099Z"}], "thread_id": "Thread-1", "execution_time": 0.005989789962768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.659520Z", "completed_at": "2022-09-07T05:20:37.684774Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.685069Z", "completed_at": "2022-09-07T05:20:37.685077Z"}], "thread_id": "Thread-1", "execution_time": 0.026417970657348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.686344Z", "completed_at": "2022-09-07T05:20:37.710122Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.710409Z", "completed_at": "2022-09-07T05:20:37.710417Z"}], "thread_id": "Thread-1", "execution_time": 0.02492070198059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.711631Z", "completed_at": "2022-09-07T05:20:37.716435Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.716777Z", "completed_at": "2022-09-07T05:20:37.716784Z"}], "thread_id": "Thread-1", "execution_time": 0.00580596923828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day.d298bb3cf9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.717861Z", "completed_at": "2022-09-07T05:20:37.721900Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.722370Z", "completed_at": "2022-09-07T05:20:37.722377Z"}], "thread_id": "Thread-1", "execution_time": 0.005292177200317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.723590Z", "completed_at": "2022-09-07T05:20:37.727581Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.727871Z", "completed_at": "2022-09-07T05:20:37.727878Z"}], "thread_id": "Thread-1", "execution_time": 0.004933834075927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.728967Z", "completed_at": "2022-09-07T05:20:37.735261Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.735545Z", "completed_at": "2022-09-07T05:20:37.735552Z"}], "thread_id": "Thread-1", "execution_time": 0.00722813606262207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.736634Z", "completed_at": "2022-09-07T05:20:37.741079Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.741621Z", "completed_at": "2022-09-07T05:20:37.741629Z"}], "thread_id": "Thread-1", "execution_time": 0.0057179927825927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.742921Z", "completed_at": "2022-09-07T05:20:37.746883Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.747169Z", "completed_at": "2022-09-07T05:20:37.747176Z"}], "thread_id": "Thread-1", "execution_time": 0.004895925521850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.748252Z", "completed_at": "2022-09-07T05:20:37.754963Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.755534Z", "completed_at": "2022-09-07T05:20:37.755541Z"}], "thread_id": "Thread-1", "execution_time": 0.007934808731079102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.756620Z", "completed_at": "2022-09-07T05:20:37.760579Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.760863Z", "completed_at": "2022-09-07T05:20:37.760869Z"}], "thread_id": "Thread-1", "execution_time": 0.004890918731689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.761941Z", "completed_at": "2022-09-07T05:20:37.765895Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.766345Z", "completed_at": "2022-09-07T05:20:37.766352Z"}], "thread_id": "Thread-1", "execution_time": 0.005117893218994141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.767437Z", "completed_at": "2022-09-07T05:20:37.773080Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.773365Z", "completed_at": "2022-09-07T05:20:37.773372Z"}], "thread_id": "Thread-1", "execution_time": 0.006575822830200195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.774441Z", "completed_at": "2022-09-07T05:20:37.779457Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.779747Z", "completed_at": "2022-09-07T05:20:37.779754Z"}], "thread_id": "Thread-1", "execution_time": 0.0060138702392578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.780829Z", "completed_at": "2022-09-07T05:20:37.784766Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.785343Z", "completed_at": "2022-09-07T05:20:37.785371Z"}], "thread_id": "Thread-1", "execution_time": 0.00542902946472168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.787150Z", "completed_at": "2022-09-07T05:20:37.792492Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.792776Z", "completed_at": "2022-09-07T05:20:37.792782Z"}], "thread_id": "Thread-1", "execution_time": 0.0065610408782958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day.03c4f86b19"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.793864Z", "completed_at": "2022-09-07T05:20:37.798091Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.798455Z", "completed_at": "2022-09-07T05:20:37.798463Z"}], "thread_id": "Thread-1", "execution_time": 0.0052530765533447266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.799562Z", "completed_at": "2022-09-07T05:20:37.804952Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.805239Z", "completed_at": "2022-09-07T05:20:37.805247Z"}], "thread_id": "Thread-1", "execution_time": 0.0063343048095703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.833518Z", "completed_at": "2022-09-07T05:20:37.839318Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.839645Z", "completed_at": "2022-09-07T05:20:37.839653Z"}], "thread_id": "Thread-1", "execution_time": 0.006869077682495117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id.2b09fa5421"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.840738Z", "completed_at": "2022-09-07T05:20:37.845863Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.846155Z", "completed_at": "2022-09-07T05:20:37.846163Z"}], "thread_id": "Thread-1", "execution_time": 0.006074190139770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.847240Z", "completed_at": "2022-09-07T05:20:37.851225Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.851509Z", "completed_at": "2022-09-07T05:20:37.851516Z"}], "thread_id": "Thread-1", "execution_time": 0.004918813705444336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.852582Z", "completed_at": "2022-09-07T05:20:37.857139Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.857614Z", "completed_at": "2022-09-07T05:20:37.857621Z"}], "thread_id": "Thread-1", "execution_time": 0.005688905715942383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.887588Z", "completed_at": "2022-09-07T05:20:37.893840Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.894353Z", "completed_at": "2022-09-07T05:20:37.894361Z"}], "thread_id": "Thread-1", "execution_time": 0.007581949234008789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.895629Z", "completed_at": "2022-09-07T05:20:37.899865Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.900150Z", "completed_at": "2022-09-07T05:20:37.900157Z"}], "thread_id": "Thread-1", "execution_time": 0.005209922790527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.901284Z", "completed_at": "2022-09-07T05:20:37.905469Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.905999Z", "completed_at": "2022-09-07T05:20:37.906007Z"}], "thread_id": "Thread-1", "execution_time": 0.005388021469116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.907094Z", "completed_at": "2022-09-07T05:20:37.912270Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.912638Z", "completed_at": "2022-09-07T05:20:37.912646Z"}], "thread_id": "Thread-1", "execution_time": 0.006289958953857422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.934980Z", "completed_at": "2022-09-07T05:20:37.940487Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.940862Z", "completed_at": "2022-09-07T05:20:37.940871Z"}], "thread_id": "Thread-1", "execution_time": 0.006637096405029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement.a29cf85a4f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.942211Z", "completed_at": "2022-09-07T05:20:37.947638Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.948069Z", "completed_at": "2022-09-07T05:20:37.948098Z"}], "thread_id": "Thread-1", "execution_time": 0.006737947463989258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.949234Z", "completed_at": "2022-09-07T05:20:37.953363Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.953768Z", "completed_at": "2022-09-07T05:20:37.953776Z"}], "thread_id": "Thread-1", "execution_time": 0.005182981491088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.954926Z", "completed_at": "2022-09-07T05:20:37.959224Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.959700Z", "completed_at": "2022-09-07T05:20:37.959708Z"}], "thread_id": "Thread-1", "execution_time": 0.005440235137939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.960793Z", "completed_at": "2022-09-07T05:20:37.966897Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.967221Z", "completed_at": "2022-09-07T05:20:37.967228Z"}], "thread_id": "Thread-1", "execution_time": 0.007066249847412109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.968438Z", "completed_at": "2022-09-07T05:20:37.973728Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.974008Z", "completed_at": "2022-09-07T05:20:37.974015Z"}], "thread_id": "Thread-1", "execution_time": 0.00638890266418457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.975082Z", "completed_at": "2022-09-07T05:20:37.979384Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.979661Z", "completed_at": "2022-09-07T05:20:37.979668Z"}], "thread_id": "Thread-1", "execution_time": 0.005212068557739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.980712Z", "completed_at": "2022-09-07T05:20:37.986883Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.987211Z", "completed_at": "2022-09-07T05:20:37.987217Z"}], "thread_id": "Thread-1", "execution_time": 0.007191658020019531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.988269Z", "completed_at": "2022-09-07T05:20:37.993616Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.994040Z", "completed_at": "2022-09-07T05:20:37.994049Z"}], "thread_id": "Thread-1", "execution_time": 0.0065348148345947266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:37.995438Z", "completed_at": "2022-09-07T05:20:37.999405Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:37.999681Z", "completed_at": "2022-09-07T05:20:37.999688Z"}], "thread_id": "Thread-1", "execution_time": 0.0048770904541015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.000737Z", "completed_at": "2022-09-07T05:20:38.004887Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.005177Z", "completed_at": "2022-09-07T05:20:38.005183Z"}], "thread_id": "Thread-1", "execution_time": 0.005084037780761719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.006570Z", "completed_at": "2022-09-07T05:20:38.014627Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.014913Z", "completed_at": "2022-09-07T05:20:38.014921Z"}], "thread_id": "Thread-1", "execution_time": 0.009140968322753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.016366Z", "completed_at": "2022-09-07T05:20:38.030109Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.030406Z", "completed_at": "2022-09-07T05:20:38.030415Z"}], "thread_id": "Thread-1", "execution_time": 0.014767169952392578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.031673Z", "completed_at": "2022-09-07T05:20:38.043995Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.044412Z", "completed_at": "2022-09-07T05:20:38.044426Z"}], "thread_id": "Thread-1", "execution_time": 0.01356196403503418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.083559Z", "completed_at": "2022-09-07T05:20:38.088597Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.088887Z", "completed_at": "2022-09-07T05:20:38.088895Z"}], "thread_id": "Thread-1", "execution_time": 0.005990028381347656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day.68c2c0de57"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.089976Z", "completed_at": "2022-09-07T05:20:38.094214Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.094667Z", "completed_at": "2022-09-07T05:20:38.094675Z"}], "thread_id": "Thread-1", "execution_time": 0.005514383316040039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.096288Z", "completed_at": "2022-09-07T05:20:38.101327Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.101892Z", "completed_at": "2022-09-07T05:20:38.101900Z"}], "thread_id": "Thread-1", "execution_time": 0.006476879119873047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.103441Z", "completed_at": "2022-09-07T05:20:38.109428Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.109720Z", "completed_at": "2022-09-07T05:20:38.109727Z"}], "thread_id": "Thread-1", "execution_time": 0.007130146026611328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.110805Z", "completed_at": "2022-09-07T05:20:38.114821Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.115235Z", "completed_at": "2022-09-07T05:20:38.115242Z"}], "thread_id": "Thread-1", "execution_time": 0.005120992660522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.116353Z", "completed_at": "2022-09-07T05:20:38.120455Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.120805Z", "completed_at": "2022-09-07T05:20:38.120812Z"}], "thread_id": "Thread-1", "execution_time": 0.005160808563232422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.121877Z", "completed_at": "2022-09-07T05:20:38.130880Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.131516Z", "completed_at": "2022-09-07T05:20:38.131525Z"}], "thread_id": "Thread-1", "execution_time": 0.010438203811645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.133442Z", "completed_at": "2022-09-07T05:20:38.145363Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.145667Z", "completed_at": "2022-09-07T05:20:38.145676Z"}], "thread_id": "Thread-1", "execution_time": 0.013114213943481445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.146939Z", "completed_at": "2022-09-07T05:20:38.155876Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.156291Z", "completed_at": "2022-09-07T05:20:38.156299Z"}], "thread_id": "Thread-1", "execution_time": 0.010030984878540039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.192884Z", "completed_at": "2022-09-07T05:20:38.198761Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.199061Z", "completed_at": "2022-09-07T05:20:38.199068Z"}], "thread_id": "Thread-1", "execution_time": 0.0069730281829833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.200218Z", "completed_at": "2022-09-07T05:20:38.204451Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.204741Z", "completed_at": "2022-09-07T05:20:38.204748Z"}], "thread_id": "Thread-1", "execution_time": 0.005203962326049805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.205840Z", "completed_at": "2022-09-07T05:20:38.213441Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.213737Z", "completed_at": "2022-09-07T05:20:38.213744Z"}], "thread_id": "Thread-1", "execution_time": 0.008564949035644531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.214961Z", "completed_at": "2022-09-07T05:20:38.218982Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.219270Z", "completed_at": "2022-09-07T05:20:38.219277Z"}], "thread_id": "Thread-1", "execution_time": 0.005036115646362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.220355Z", "completed_at": "2022-09-07T05:20:38.226845Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.227150Z", "completed_at": "2022-09-07T05:20:38.227157Z"}], "thread_id": "Thread-1", "execution_time": 0.007467031478881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.228809Z", "completed_at": "2022-09-07T05:20:38.235454Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.235913Z", "completed_at": "2022-09-07T05:20:38.235923Z"}], "thread_id": "Thread-1", "execution_time": 0.008107900619506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.237704Z", "completed_at": "2022-09-07T05:20:38.250722Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.251022Z", "completed_at": "2022-09-07T05:20:38.251031Z"}], "thread_id": "Thread-1", "execution_time": 0.014277935028076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.252297Z", "completed_at": "2022-09-07T05:20:38.257928Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.258286Z", "completed_at": "2022-09-07T05:20:38.258316Z"}], "thread_id": "Thread-1", "execution_time": 0.006823301315307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id.4b3426da0f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.259963Z", "completed_at": "2022-09-07T05:20:38.264634Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.264982Z", "completed_at": "2022-09-07T05:20:38.264993Z"}], "thread_id": "Thread-1", "execution_time": 0.005803108215332031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.266489Z", "completed_at": "2022-09-07T05:20:38.274922Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.275362Z", "completed_at": "2022-09-07T05:20:38.275374Z"}], "thread_id": "Thread-1", "execution_time": 0.009783267974853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.277067Z", "completed_at": "2022-09-07T05:20:38.283101Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.283397Z", "completed_at": "2022-09-07T05:20:38.283406Z"}], "thread_id": "Thread-1", "execution_time": 0.007333993911743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.284637Z", "completed_at": "2022-09-07T05:20:38.290086Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.290377Z", "completed_at": "2022-09-07T05:20:38.290385Z"}], "thread_id": "Thread-1", "execution_time": 0.006448030471801758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id.1cadcf1583"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.291503Z", "completed_at": "2022-09-07T05:20:38.296082Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.296424Z", "completed_at": "2022-09-07T05:20:38.296431Z"}], "thread_id": "Thread-1", "execution_time": 0.005658864974975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.297698Z", "completed_at": "2022-09-07T05:20:38.312342Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.312641Z", "completed_at": "2022-09-07T05:20:38.312650Z"}], "thread_id": "Thread-1", "execution_time": 0.015717744827270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.313889Z", "completed_at": "2022-09-07T05:20:38.320433Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.320734Z", "completed_at": "2022-09-07T05:20:38.320741Z"}], "thread_id": "Thread-1", "execution_time": 0.007653236389160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.321827Z", "completed_at": "2022-09-07T05:20:38.326067Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.326351Z", "completed_at": "2022-09-07T05:20:38.326358Z"}], "thread_id": "Thread-1", "execution_time": 0.005178928375244141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.327431Z", "completed_at": "2022-09-07T05:20:38.336188Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.336532Z", "completed_at": "2022-09-07T05:20:38.336539Z"}], "thread_id": "Thread-1", "execution_time": 0.009824991226196289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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.cd216b1424"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-07T05:20:38.337739Z", "completed_at": "2022-09-07T05:20:38.342587Z"}, {"name": "execute", "started_at": "2022-09-07T05:20:38.342880Z", "completed_at": "2022-09-07T05:20:38.342887Z"}], "thread_id": "Thread-1", "execution_time": 0.005809307098388672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6"}], "elapsed_time": 44.3337562084198, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/sheri.nguyen/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2022-11-08T22:17:18.774548Z", "invocation_id": "bdca839e-605b-42f7-a59a-9356b4dce839", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.568414Z", "completed_at": "2022-11-08T22:16:28.578217Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.578776Z", "completed_at": "2022-11-08T22:16:28.578808Z"}], "thread_id": "Thread-1", "execution_time": 0.012090921401977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.582000Z", "completed_at": "2022-11-08T22:16:28.599925Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.600487Z", "completed_at": "2022-11-08T22:16:28.600501Z"}], "thread_id": "Thread-1", "execution_time": 0.020328044891357422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.603527Z", "completed_at": "2022-11-08T22:16:28.611521Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.612050Z", "completed_at": "2022-11-08T22:16:28.612064Z"}], "thread_id": "Thread-1", "execution_time": 0.010295867919921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.614965Z", "completed_at": "2022-11-08T22:16:28.622237Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.622757Z", "completed_at": "2022-11-08T22:16:28.622769Z"}], "thread_id": "Thread-1", "execution_time": 0.009515047073364258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.625516Z", "completed_at": "2022-11-08T22:16:28.632540Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.633033Z", "completed_at": "2022-11-08T22:16:28.633044Z"}], "thread_id": "Thread-1", "execution_time": 0.009176015853881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.635701Z", "completed_at": "2022-11-08T22:16:28.643983Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.644473Z", "completed_at": "2022-11-08T22:16:28.644484Z"}], "thread_id": "Thread-1", "execution_time": 0.010424137115478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.647174Z", "completed_at": "2022-11-08T22:16:28.654739Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.655392Z", "completed_at": "2022-11-08T22:16:28.655407Z"}], "thread_id": "Thread-1", "execution_time": 0.009988069534301758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.658373Z", "completed_at": "2022-11-08T22:16:28.665842Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.666347Z", "completed_at": "2022-11-08T22:16:28.666359Z"}], "thread_id": "Thread-1", "execution_time": 0.009674072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.669264Z", "completed_at": "2022-11-08T22:16:28.677613Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.678106Z", "completed_at": "2022-11-08T22:16:28.678118Z"}], "thread_id": "Thread-1", "execution_time": 0.010720014572143555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.680838Z", "completed_at": "2022-11-08T22:16:28.688181Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.688675Z", "completed_at": "2022-11-08T22:16:28.688686Z"}], "thread_id": "Thread-1", "execution_time": 0.009515047073364258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.691376Z", "completed_at": "2022-11-08T22:16:28.699347Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.700009Z", "completed_at": "2022-11-08T22:16:28.700023Z"}], "thread_id": "Thread-1", "execution_time": 0.01040506362915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.703014Z", "completed_at": "2022-11-08T22:16:28.710506Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.710996Z", "completed_at": "2022-11-08T22:16:28.711007Z"}], "thread_id": "Thread-1", "execution_time": 0.009682893753051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.713702Z", "completed_at": "2022-11-08T22:16:28.722189Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.722687Z", "completed_at": "2022-11-08T22:16:28.722699Z"}], "thread_id": "Thread-1", "execution_time": 0.010666131973266602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.725379Z", "completed_at": "2022-11-08T22:16:28.732248Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.732742Z", "completed_at": "2022-11-08T22:16:28.732753Z"}], "thread_id": "Thread-1", "execution_time": 0.009028911590576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.735430Z", "completed_at": "2022-11-08T22:16:28.742429Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.742919Z", "completed_at": "2022-11-08T22:16:28.742930Z"}], "thread_id": "Thread-1", "execution_time": 0.009119987487792969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.745594Z", "completed_at": "2022-11-08T22:16:28.752600Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.753104Z", "completed_at": "2022-11-08T22:16:28.753115Z"}], "thread_id": "Thread-1", "execution_time": 0.00917673110961914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.755840Z", "completed_at": "2022-11-08T22:16:28.765227Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.765743Z", "completed_at": "2022-11-08T22:16:28.765755Z"}], "thread_id": "Thread-1", "execution_time": 0.011556148529052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.768458Z", "completed_at": "2022-11-08T22:16:28.775379Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.775869Z", "completed_at": "2022-11-08T22:16:28.775881Z"}], "thread_id": "Thread-1", "execution_time": 0.009054899215698242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.778603Z", "completed_at": "2022-11-08T22:16:28.785863Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.786377Z", "completed_at": "2022-11-08T22:16:28.786390Z"}], "thread_id": "Thread-1", "execution_time": 0.00987386703491211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.789287Z", "completed_at": "2022-11-08T22:16:28.796786Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.797292Z", "completed_at": "2022-11-08T22:16:28.797304Z"}], "thread_id": "Thread-1", "execution_time": 0.009752273559570312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.800131Z", "completed_at": "2022-11-08T22:16:28.809195Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.809707Z", "completed_at": "2022-11-08T22:16:28.809720Z"}], "thread_id": "Thread-1", "execution_time": 0.011293888092041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.812730Z", "completed_at": "2022-11-08T22:16:28.820259Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.820775Z", "completed_at": "2022-11-08T22:16:28.820788Z"}], "thread_id": "Thread-1", "execution_time": 0.009621143341064453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.823684Z", "completed_at": "2022-11-08T22:16:28.831384Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.832081Z", "completed_at": "2022-11-08T22:16:28.832098Z"}], "thread_id": "Thread-1", "execution_time": 0.010383844375610352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.835416Z", "completed_at": "2022-11-08T22:16:28.842912Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.843423Z", "completed_at": "2022-11-08T22:16:28.843436Z"}], "thread_id": "Thread-1", "execution_time": 0.00977778434753418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.846295Z", "completed_at": "2022-11-08T22:16:28.855848Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.856404Z", "completed_at": "2022-11-08T22:16:28.856419Z"}], "thread_id": "Thread-1", "execution_time": 0.011857032775878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.859277Z", "completed_at": "2022-11-08T22:16:28.866688Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.867199Z", "completed_at": "2022-11-08T22:16:28.867212Z"}], "thread_id": "Thread-1", "execution_time": 0.009653091430664062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.870057Z", "completed_at": "2022-11-08T22:16:28.877540Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.878053Z", "completed_at": "2022-11-08T22:16:28.878067Z"}], "thread_id": "Thread-1", "execution_time": 0.009697914123535156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.881122Z", "completed_at": "2022-11-08T22:16:28.890811Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.891359Z", "completed_at": "2022-11-08T22:16:28.891373Z"}], "thread_id": "Thread-1", "execution_time": 0.012173891067504883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.894173Z", "completed_at": "2022-11-08T22:16:28.901445Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.901961Z", "completed_at": "2022-11-08T22:16:28.901972Z"}], "thread_id": "Thread-1", "execution_time": 0.009433984756469727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.904756Z", "completed_at": "2022-11-08T22:16:28.912212Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.912724Z", "completed_at": "2022-11-08T22:16:28.912737Z"}], "thread_id": "Thread-1", "execution_time": 0.009675025939941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.915583Z", "completed_at": "2022-11-08T22:16:28.923008Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.923519Z", "completed_at": "2022-11-08T22:16:28.923531Z"}], "thread_id": "Thread-1", "execution_time": 0.009635210037231445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.926319Z", "completed_at": "2022-11-08T22:16:28.935680Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.936215Z", "completed_at": "2022-11-08T22:16:28.936228Z"}], "thread_id": "Thread-1", "execution_time": 0.011606216430664062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.939056Z", "completed_at": "2022-11-08T22:16:28.947097Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.947684Z", "completed_at": "2022-11-08T22:16:28.947698Z"}], "thread_id": "Thread-1", "execution_time": 0.010209798812866211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.950564Z", "completed_at": "2022-11-08T22:16:28.958079Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.958580Z", "completed_at": "2022-11-08T22:16:28.958593Z"}], "thread_id": "Thread-1", "execution_time": 0.009718894958496094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.961397Z", "completed_at": "2022-11-08T22:16:28.969652Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.970192Z", "completed_at": "2022-11-08T22:16:28.970206Z"}], "thread_id": "Thread-1", "execution_time": 0.010525226593017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.972987Z", "completed_at": "2022-11-08T22:16:28.982403Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.982931Z", "completed_at": "2022-11-08T22:16:28.982944Z"}], "thread_id": "Thread-1", "execution_time": 0.011626243591308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.985824Z", "completed_at": "2022-11-08T22:16:28.993182Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:28.993695Z", "completed_at": "2022-11-08T22:16:28.993708Z"}], "thread_id": "Thread-1", "execution_time": 0.009629011154174805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:28.996514Z", "completed_at": "2022-11-08T22:16:29.004007Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.004534Z", "completed_at": "2022-11-08T22:16:29.004548Z"}], "thread_id": "Thread-1", "execution_time": 0.009756088256835938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.007437Z", "completed_at": "2022-11-08T22:16:29.015254Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.015792Z", "completed_at": "2022-11-08T22:16:29.015805Z"}], "thread_id": "Thread-1", "execution_time": 0.010123968124389648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.018686Z", "completed_at": "2022-11-08T22:16:29.027496Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.028008Z", "completed_at": "2022-11-08T22:16:29.028020Z"}], "thread_id": "Thread-1", "execution_time": 0.010898113250732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.030769Z", "completed_at": "2022-11-08T22:16:29.038612Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.039148Z", "completed_at": "2022-11-08T22:16:29.039161Z"}], "thread_id": "Thread-1", "execution_time": 0.010071992874145508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.041959Z", "completed_at": "2022-11-08T22:16:29.049325Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.049831Z", "completed_at": "2022-11-08T22:16:29.049845Z"}], "thread_id": "Thread-1", "execution_time": 0.00956869125366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.052666Z", "completed_at": "2022-11-08T22:16:29.060198Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.060709Z", "completed_at": "2022-11-08T22:16:29.060722Z"}], "thread_id": "Thread-1", "execution_time": 0.01019287109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.063555Z", "completed_at": "2022-11-08T22:16:29.073695Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.074297Z", "completed_at": "2022-11-08T22:16:29.074311Z"}], "thread_id": "Thread-1", "execution_time": 0.01270294189453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.077506Z", "completed_at": "2022-11-08T22:16:29.084749Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.085259Z", "completed_at": "2022-11-08T22:16:29.085271Z"}], "thread_id": "Thread-1", "execution_time": 0.00947713851928711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.088018Z", "completed_at": "2022-11-08T22:16:29.095784Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.096328Z", "completed_at": "2022-11-08T22:16:29.096342Z"}], "thread_id": "Thread-1", "execution_time": 0.01003885269165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.099241Z", "completed_at": "2022-11-08T22:16:29.108310Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.108840Z", "completed_at": "2022-11-08T22:16:29.108854Z"}], "thread_id": "Thread-1", "execution_time": 0.011360883712768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.111657Z", "completed_at": "2022-11-08T22:16:29.119848Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.120521Z", "completed_at": "2022-11-08T22:16:29.120538Z"}], "thread_id": "Thread-1", "execution_time": 0.010499954223632812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.123487Z", "completed_at": "2022-11-08T22:16:29.130950Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.131459Z", "completed_at": "2022-11-08T22:16:29.131472Z"}], "thread_id": "Thread-1", "execution_time": 0.009704113006591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.134280Z", "completed_at": "2022-11-08T22:16:29.141834Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.142357Z", "completed_at": "2022-11-08T22:16:29.142370Z"}], "thread_id": "Thread-1", "execution_time": 0.009827852249145508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.145196Z", "completed_at": "2022-11-08T22:16:29.154211Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.154737Z", "completed_at": "2022-11-08T22:16:29.154751Z"}], "thread_id": "Thread-1", "execution_time": 0.011261940002441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.157016Z", "completed_at": "2022-11-08T22:16:29.165064Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.165583Z", "completed_at": "2022-11-08T22:16:29.165597Z"}], "thread_id": "Thread-1", "execution_time": 0.010127782821655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.168623Z", "completed_at": "2022-11-08T22:16:29.175997Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.176516Z", "completed_at": "2022-11-08T22:16:29.176529Z"}], "thread_id": "Thread-1", "execution_time": 0.009840726852416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.179348Z", "completed_at": "2022-11-08T22:16:29.186727Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.187238Z", "completed_at": "2022-11-08T22:16:29.187251Z"}], "thread_id": "Thread-1", "execution_time": 0.009580612182617188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.190171Z", "completed_at": "2022-11-08T22:16:29.200061Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.200602Z", "completed_at": "2022-11-08T22:16:29.200616Z"}], "thread_id": "Thread-1", "execution_time": 0.01224517822265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.203457Z", "completed_at": "2022-11-08T22:16:29.210839Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.211358Z", "completed_at": "2022-11-08T22:16:29.211372Z"}], "thread_id": "Thread-1", "execution_time": 0.009627819061279297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.214221Z", "completed_at": "2022-11-08T22:16:29.221577Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.222085Z", "completed_at": "2022-11-08T22:16:29.222098Z"}], "thread_id": "Thread-1", "execution_time": 0.009549856185913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.224902Z", "completed_at": "2022-11-08T22:16:29.232638Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.233159Z", "completed_at": "2022-11-08T22:16:29.233172Z"}], "thread_id": "Thread-1", "execution_time": 0.009966850280761719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.236009Z", "completed_at": "2022-11-08T22:16:29.244694Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.245192Z", "completed_at": "2022-11-08T22:16:29.245204Z"}], "thread_id": "Thread-1", "execution_time": 0.010886907577514648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.247923Z", "completed_at": "2022-11-08T22:16:29.255455Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.255977Z", "completed_at": "2022-11-08T22:16:29.255989Z"}], "thread_id": "Thread-1", "execution_time": 0.009603023529052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.258758Z", "completed_at": "2022-11-08T22:16:29.266108Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.266620Z", "completed_at": "2022-11-08T22:16:29.266633Z"}], "thread_id": "Thread-1", "execution_time": 0.00956583023071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.269434Z", "completed_at": "2022-11-08T22:16:29.276963Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.277471Z", "completed_at": "2022-11-08T22:16:29.277485Z"}], "thread_id": "Thread-1", "execution_time": 0.010168075561523438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.280285Z", "completed_at": "2022-11-08T22:16:29.289580Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.290121Z", "completed_at": "2022-11-08T22:16:29.290135Z"}], "thread_id": "Thread-1", "execution_time": 0.011553049087524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.292967Z", "completed_at": "2022-11-08T22:16:29.300509Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.301027Z", "completed_at": "2022-11-08T22:16:29.301041Z"}], "thread_id": "Thread-1", "execution_time": 0.009785652160644531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.303878Z", "completed_at": "2022-11-08T22:16:29.311711Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.312245Z", "completed_at": "2022-11-08T22:16:29.312258Z"}], "thread_id": "Thread-1", "execution_time": 0.010118961334228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.315126Z", "completed_at": "2022-11-08T22:16:29.323761Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.324272Z", "completed_at": "2022-11-08T22:16:29.324285Z"}], "thread_id": "Thread-1", "execution_time": 0.010892868041992188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.327123Z", "completed_at": "2022-11-08T22:16:29.334528Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.335043Z", "completed_at": "2022-11-08T22:16:29.335056Z"}], "thread_id": "Thread-1", "execution_time": 0.009644031524658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.337888Z", "completed_at": "2022-11-08T22:16:29.345321Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.345839Z", "completed_at": "2022-11-08T22:16:29.345852Z"}], "thread_id": "Thread-1", "execution_time": 0.009689807891845703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.348673Z", "completed_at": "2022-11-08T22:16:29.356889Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.357886Z", "completed_at": "2022-11-08T22:16:29.357901Z"}], "thread_id": "Thread-1", "execution_time": 0.010982990264892578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.360831Z", "completed_at": "2022-11-08T22:16:29.370520Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.371047Z", "completed_at": "2022-11-08T22:16:29.371059Z"}], "thread_id": "Thread-1", "execution_time": 0.011986970901489258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.373867Z", "completed_at": "2022-11-08T22:16:29.381100Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.381600Z", "completed_at": "2022-11-08T22:16:29.381612Z"}], "thread_id": "Thread-1", "execution_time": 0.009428024291992188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.384443Z", "completed_at": "2022-11-08T22:16:29.392474Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.393021Z", "completed_at": "2022-11-08T22:16:29.393035Z"}], "thread_id": "Thread-1", "execution_time": 0.01033926010131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.395793Z", "completed_at": "2022-11-08T22:16:29.403015Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.403509Z", "completed_at": "2022-11-08T22:16:29.403521Z"}], "thread_id": "Thread-1", "execution_time": 0.009227991104125977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.406274Z", "completed_at": "2022-11-08T22:16:29.415268Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.415802Z", "completed_at": "2022-11-08T22:16:29.415816Z"}], "thread_id": "Thread-1", "execution_time": 0.011277914047241211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.418637Z", "completed_at": "2022-11-08T22:16:29.425733Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.426226Z", "completed_at": "2022-11-08T22:16:29.426237Z"}], "thread_id": "Thread-1", "execution_time": 0.00926518440246582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.429058Z", "completed_at": "2022-11-08T22:16:29.437338Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.438198Z", "completed_at": "2022-11-08T22:16:29.438213Z"}], "thread_id": "Thread-1", "execution_time": 0.011054754257202148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.441526Z", "completed_at": "2022-11-08T22:16:29.448969Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.449475Z", "completed_at": "2022-11-08T22:16:29.449488Z"}], "thread_id": "Thread-1", "execution_time": 0.009713888168334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.452250Z", "completed_at": "2022-11-08T22:16:29.460709Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.461203Z", "completed_at": "2022-11-08T22:16:29.461215Z"}], "thread_id": "Thread-1", "execution_time": 0.010622024536132812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.463977Z", "completed_at": "2022-11-08T22:16:29.468027Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.468497Z", "completed_at": "2022-11-08T22:16:29.468509Z"}], "thread_id": "Thread-1", "execution_time": 0.0062160491943359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.471095Z", "completed_at": "2022-11-08T22:16:29.475009Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.475479Z", "completed_at": "2022-11-08T22:16:29.475492Z"}], "thread_id": "Thread-1", "execution_time": 0.0059452056884765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.478074Z", "completed_at": "2022-11-08T22:16:29.482012Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.482482Z", "completed_at": "2022-11-08T22:16:29.482494Z"}], "thread_id": "Thread-1", "execution_time": 0.005960941314697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.485052Z", "completed_at": "2022-11-08T22:16:29.587628Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.588122Z", "completed_at": "2022-11-08T22:16:29.588136Z"}], "thread_id": "Thread-1", "execution_time": 0.10464310646057129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.590805Z", "completed_at": "2022-11-08T22:16:29.594625Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.595111Z", "completed_at": "2022-11-08T22:16:29.595123Z"}], "thread_id": "Thread-1", "execution_time": 0.005871772766113281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.597740Z", "completed_at": "2022-11-08T22:16:29.601487Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.601958Z", "completed_at": "2022-11-08T22:16:29.601969Z"}], "thread_id": "Thread-1", "execution_time": 0.005883932113647461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.604646Z", "completed_at": "2022-11-08T22:16:29.608308Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.608783Z", "completed_at": "2022-11-08T22:16:29.608794Z"}], "thread_id": "Thread-1", "execution_time": 0.006043910980224609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.611333Z", "completed_at": "2022-11-08T22:16:29.616593Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.617091Z", "completed_at": "2022-11-08T22:16:29.617104Z"}], "thread_id": "Thread-1", "execution_time": 0.007317066192626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.619639Z", "completed_at": "2022-11-08T22:16:29.623300Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.623791Z", "completed_at": "2022-11-08T22:16:29.623802Z"}], "thread_id": "Thread-1", "execution_time": 0.005702018737792969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.626347Z", "completed_at": "2022-11-08T22:16:29.630048Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.630535Z", "completed_at": "2022-11-08T22:16:29.630547Z"}], "thread_id": "Thread-1", "execution_time": 0.00574803352355957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.633078Z", "completed_at": "2022-11-08T22:16:29.636780Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.637263Z", "completed_at": "2022-11-08T22:16:29.637275Z"}], "thread_id": "Thread-1", "execution_time": 0.0057108402252197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.639790Z", "completed_at": "2022-11-08T22:16:29.645035Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.645526Z", "completed_at": "2022-11-08T22:16:29.645538Z"}], "thread_id": "Thread-1", "execution_time": 0.007292270660400391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.648094Z", "completed_at": "2022-11-08T22:16:29.651879Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.652362Z", "completed_at": "2022-11-08T22:16:29.652373Z"}], "thread_id": "Thread-1", "execution_time": 0.006181001663208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.654946Z", "completed_at": "2022-11-08T22:16:29.658739Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.659228Z", "completed_at": "2022-11-08T22:16:29.659240Z"}], "thread_id": "Thread-1", "execution_time": 0.0058460235595703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.661811Z", "completed_at": "2022-11-08T22:16:29.665527Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.666006Z", "completed_at": "2022-11-08T22:16:29.666017Z"}], "thread_id": "Thread-1", "execution_time": 0.0057337284088134766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.668542Z", "completed_at": "2022-11-08T22:16:29.673968Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.674459Z", "completed_at": "2022-11-08T22:16:29.674471Z"}], "thread_id": "Thread-1", "execution_time": 0.007482767105102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.677068Z", "completed_at": "2022-11-08T22:16:29.680863Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.681350Z", "completed_at": "2022-11-08T22:16:29.681363Z"}], "thread_id": "Thread-1", "execution_time": 0.005850315093994141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.683998Z", "completed_at": "2022-11-08T22:16:29.687842Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.688335Z", "completed_at": "2022-11-08T22:16:29.688346Z"}], "thread_id": "Thread-1", "execution_time": 0.005912065505981445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.691060Z", "completed_at": "2022-11-08T22:16:29.696174Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.696666Z", "completed_at": "2022-11-08T22:16:29.696677Z"}], "thread_id": "Thread-1", "execution_time": 0.007297039031982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.699266Z", "completed_at": "2022-11-08T22:16:29.703107Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.703600Z", "completed_at": "2022-11-08T22:16:29.703612Z"}], "thread_id": "Thread-1", "execution_time": 0.006285905838012695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.706276Z", "completed_at": "2022-11-08T22:16:29.709980Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.710459Z", "completed_at": "2022-11-08T22:16:29.710470Z"}], "thread_id": "Thread-1", "execution_time": 0.005728960037231445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.712945Z", "completed_at": "2022-11-08T22:16:29.716645Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.717106Z", "completed_at": "2022-11-08T22:16:29.717116Z"}], "thread_id": "Thread-1", "execution_time": 0.006014823913574219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.719605Z", "completed_at": "2022-11-08T22:16:29.725104Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.725578Z", "completed_at": "2022-11-08T22:16:29.725589Z"}], "thread_id": "Thread-1", "execution_time": 0.007531881332397461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.728114Z", "completed_at": "2022-11-08T22:16:29.731845Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.732297Z", "completed_at": "2022-11-08T22:16:29.732307Z"}], "thread_id": "Thread-1", "execution_time": 0.00568389892578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.734797Z", "completed_at": "2022-11-08T22:16:29.738553Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.739021Z", "completed_at": "2022-11-08T22:16:29.739032Z"}], "thread_id": "Thread-1", "execution_time": 0.0057468414306640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.741524Z", "completed_at": "2022-11-08T22:16:29.745226Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.745687Z", "completed_at": "2022-11-08T22:16:29.745698Z"}], "thread_id": "Thread-1", "execution_time": 0.005679130554199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.748172Z", "completed_at": "2022-11-08T22:16:29.753601Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.754068Z", "completed_at": "2022-11-08T22:16:29.754079Z"}], "thread_id": "Thread-1", "execution_time": 0.007420063018798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.756553Z", "completed_at": "2022-11-08T22:16:29.760229Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.760699Z", "completed_at": "2022-11-08T22:16:29.760710Z"}], "thread_id": "Thread-1", "execution_time": 0.0056531429290771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.763181Z", "completed_at": "2022-11-08T22:16:29.766893Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.767356Z", "completed_at": "2022-11-08T22:16:29.767367Z"}], "thread_id": "Thread-1", "execution_time": 0.00569605827331543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.769856Z", "completed_at": "2022-11-08T22:16:29.773545Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.774009Z", "completed_at": "2022-11-08T22:16:29.774020Z"}], "thread_id": "Thread-1", "execution_time": 0.0056650638580322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.776663Z", "completed_at": "2022-11-08T22:16:29.781917Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.782384Z", "completed_at": "2022-11-08T22:16:29.782395Z"}], "thread_id": "Thread-1", "execution_time": 0.0074040889739990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.785034Z", "completed_at": "2022-11-08T22:16:29.788633Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.789098Z", "completed_at": "2022-11-08T22:16:29.789109Z"}], "thread_id": "Thread-1", "execution_time": 0.0057430267333984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.791654Z", "completed_at": "2022-11-08T22:16:29.795338Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.795801Z", "completed_at": "2022-11-08T22:16:29.795811Z"}], "thread_id": "Thread-1", "execution_time": 0.00574183464050293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.798310Z", "completed_at": "2022-11-08T22:16:29.801961Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.802415Z", "completed_at": "2022-11-08T22:16:29.802426Z"}], "thread_id": "Thread-1", "execution_time": 0.005594968795776367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.804891Z", "completed_at": "2022-11-08T22:16:29.810301Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.810769Z", "completed_at": "2022-11-08T22:16:29.810780Z"}], "thread_id": "Thread-1", "execution_time": 0.007396221160888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.813240Z", "completed_at": "2022-11-08T22:16:29.816921Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.817380Z", "completed_at": "2022-11-08T22:16:29.817391Z"}], "thread_id": "Thread-1", "execution_time": 0.00563812255859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.819878Z", "completed_at": "2022-11-08T22:16:29.823577Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.824044Z", "completed_at": "2022-11-08T22:16:29.824054Z"}], "thread_id": "Thread-1", "execution_time": 0.005689859390258789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.826525Z", "completed_at": "2022-11-08T22:16:29.830200Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.830659Z", "completed_at": "2022-11-08T22:16:29.830670Z"}], "thread_id": "Thread-1", "execution_time": 0.0056438446044921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.833152Z", "completed_at": "2022-11-08T22:16:29.838460Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.838925Z", "completed_at": "2022-11-08T22:16:29.838936Z"}], "thread_id": "Thread-1", "execution_time": 0.007297039031982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.841394Z", "completed_at": "2022-11-08T22:16:29.845066Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.845526Z", "completed_at": "2022-11-08T22:16:29.845537Z"}], "thread_id": "Thread-1", "execution_time": 0.0056400299072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.848014Z", "completed_at": "2022-11-08T22:16:29.851725Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.852192Z", "completed_at": "2022-11-08T22:16:29.852203Z"}], "thread_id": "Thread-1", "execution_time": 0.005707979202270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.854682Z", "completed_at": "2022-11-08T22:16:29.858368Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.858831Z", "completed_at": "2022-11-08T22:16:29.858842Z"}], "thread_id": "Thread-1", "execution_time": 0.0056610107421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.861310Z", "completed_at": "2022-11-08T22:16:29.866617Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.867082Z", "completed_at": "2022-11-08T22:16:29.867093Z"}], "thread_id": "Thread-1", "execution_time": 0.007289886474609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.869555Z", "completed_at": "2022-11-08T22:16:29.873252Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.873715Z", "completed_at": "2022-11-08T22:16:29.873726Z"}], "thread_id": "Thread-1", "execution_time": 0.0056629180908203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.876347Z", "completed_at": "2022-11-08T22:16:29.879947Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.880407Z", "completed_at": "2022-11-08T22:16:29.880418Z"}], "thread_id": "Thread-1", "execution_time": 0.005743980407714844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.882888Z", "completed_at": "2022-11-08T22:16:29.886547Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.887012Z", "completed_at": "2022-11-08T22:16:29.887023Z"}], "thread_id": "Thread-1", "execution_time": 0.005630016326904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.889490Z", "completed_at": "2022-11-08T22:16:29.894774Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.895241Z", "completed_at": "2022-11-08T22:16:29.895252Z"}], "thread_id": "Thread-1", "execution_time": 0.007272958755493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.897712Z", "completed_at": "2022-11-08T22:16:29.901384Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.901851Z", "completed_at": "2022-11-08T22:16:29.901863Z"}], "thread_id": "Thread-1", "execution_time": 0.005658864974975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.904351Z", "completed_at": "2022-11-08T22:16:29.908063Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.908530Z", "completed_at": "2022-11-08T22:16:29.908541Z"}], "thread_id": "Thread-1", "execution_time": 0.0056989192962646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.911013Z", "completed_at": "2022-11-08T22:16:29.914675Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.915135Z", "completed_at": "2022-11-08T22:16:29.915146Z"}], "thread_id": "Thread-1", "execution_time": 0.005626678466796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.917602Z", "completed_at": "2022-11-08T22:16:29.922736Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.923203Z", "completed_at": "2022-11-08T22:16:29.923214Z"}], "thread_id": "Thread-1", "execution_time": 0.0071218013763427734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.925682Z", "completed_at": "2022-11-08T22:16:29.929343Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.929807Z", "completed_at": "2022-11-08T22:16:29.929818Z"}], "thread_id": "Thread-1", "execution_time": 0.005629301071166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.932268Z", "completed_at": "2022-11-08T22:16:29.935935Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.936403Z", "completed_at": "2022-11-08T22:16:29.936414Z"}], "thread_id": "Thread-1", "execution_time": 0.005643129348754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.938870Z", "completed_at": "2022-11-08T22:16:29.942517Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.942970Z", "completed_at": "2022-11-08T22:16:29.942981Z"}], "thread_id": "Thread-1", "execution_time": 0.0055921077728271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.945424Z", "completed_at": "2022-11-08T22:16:29.950490Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.950957Z", "completed_at": "2022-11-08T22:16:29.950968Z"}], "thread_id": "Thread-1", "execution_time": 0.0070531368255615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.953415Z", "completed_at": "2022-11-08T22:16:29.957069Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.957532Z", "completed_at": "2022-11-08T22:16:29.957542Z"}], "thread_id": "Thread-1", "execution_time": 0.005614042282104492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.959983Z", "completed_at": "2022-11-08T22:16:29.963749Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.964224Z", "completed_at": "2022-11-08T22:16:29.964235Z"}], "thread_id": "Thread-1", "execution_time": 0.0057528018951416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.966685Z", "completed_at": "2022-11-08T22:16:29.971436Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.971899Z", "completed_at": "2022-11-08T22:16:29.971909Z"}], "thread_id": "Thread-1", "execution_time": 0.006717205047607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.974364Z", "completed_at": "2022-11-08T22:16:29.978031Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.978502Z", "completed_at": "2022-11-08T22:16:29.978513Z"}], "thread_id": "Thread-1", "execution_time": 0.005663871765136719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.980974Z", "completed_at": "2022-11-08T22:16:29.984625Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.985085Z", "completed_at": "2022-11-08T22:16:29.985096Z"}], "thread_id": "Thread-1", "execution_time": 0.005615949630737305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.987573Z", "completed_at": "2022-11-08T22:16:29.991241Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.991706Z", "completed_at": "2022-11-08T22:16:29.991717Z"}], "thread_id": "Thread-1", "execution_time": 0.005697011947631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:29.994196Z", "completed_at": "2022-11-08T22:16:29.999079Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:29.999540Z", "completed_at": "2022-11-08T22:16:29.999551Z"}], "thread_id": "Thread-1", "execution_time": 0.006851911544799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.002001Z", "completed_at": "2022-11-08T22:16:30.005687Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.006156Z", "completed_at": "2022-11-08T22:16:30.006167Z"}], "thread_id": "Thread-1", "execution_time": 0.005674123764038086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.008619Z", "completed_at": "2022-11-08T22:16:30.012260Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.012723Z", "completed_at": "2022-11-08T22:16:30.012734Z"}], "thread_id": "Thread-1", "execution_time": 0.005608797073364258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.015190Z", "completed_at": "2022-11-08T22:16:30.018873Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.019340Z", "completed_at": "2022-11-08T22:16:30.019351Z"}], "thread_id": "Thread-1", "execution_time": 0.005670070648193359, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.021804Z", "completed_at": "2022-11-08T22:16:30.026723Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.027184Z", "completed_at": "2022-11-08T22:16:30.027195Z"}], "thread_id": "Thread-1", "execution_time": 0.006876945495605469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.029629Z", "completed_at": "2022-11-08T22:16:30.033320Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.033787Z", "completed_at": "2022-11-08T22:16:30.033797Z"}], "thread_id": "Thread-1", "execution_time": 0.005675792694091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.036276Z", "completed_at": "2022-11-08T22:16:30.039943Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.040406Z", "completed_at": "2022-11-08T22:16:30.040417Z"}], "thread_id": "Thread-1", "execution_time": 0.005655050277709961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.042881Z", "completed_at": "2022-11-08T22:16:30.046556Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.047021Z", "completed_at": "2022-11-08T22:16:30.047032Z"}], "thread_id": "Thread-1", "execution_time": 0.005803108215332031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.049618Z", "completed_at": "2022-11-08T22:16:30.054480Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.054935Z", "completed_at": "2022-11-08T22:16:30.054946Z"}], "thread_id": "Thread-1", "execution_time": 0.006910085678100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.057476Z", "completed_at": "2022-11-08T22:16:30.061119Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.061583Z", "completed_at": "2022-11-08T22:16:30.061594Z"}], "thread_id": "Thread-1", "execution_time": 0.0056192874908447266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.064051Z", "completed_at": "2022-11-08T22:16:30.067716Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.068180Z", "completed_at": "2022-11-08T22:16:30.068191Z"}], "thread_id": "Thread-1", "execution_time": 0.0056383609771728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.070635Z", "completed_at": "2022-11-08T22:16:30.074357Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.074827Z", "completed_at": "2022-11-08T22:16:30.074838Z"}], "thread_id": "Thread-1", "execution_time": 0.005707979202270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.077294Z", "completed_at": "2022-11-08T22:16:30.082319Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.082778Z", "completed_at": "2022-11-08T22:16:30.082789Z"}], "thread_id": "Thread-1", "execution_time": 0.006982088088989258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.085226Z", "completed_at": "2022-11-08T22:16:30.088894Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.089362Z", "completed_at": "2022-11-08T22:16:30.089373Z"}], "thread_id": "Thread-1", "execution_time": 0.00564885139465332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.091808Z", "completed_at": "2022-11-08T22:16:30.095457Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.095920Z", "completed_at": "2022-11-08T22:16:30.095930Z"}], "thread_id": "Thread-1", "execution_time": 0.005615234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.098371Z", "completed_at": "2022-11-08T22:16:30.102142Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.102604Z", "completed_at": "2022-11-08T22:16:30.102616Z"}], "thread_id": "Thread-1", "execution_time": 0.005774021148681641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.105095Z", "completed_at": "2022-11-08T22:16:30.110041Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.110507Z", "completed_at": "2022-11-08T22:16:30.110518Z"}], "thread_id": "Thread-1", "execution_time": 0.006927013397216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.112948Z", "completed_at": "2022-11-08T22:16:30.116578Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.117039Z", "completed_at": "2022-11-08T22:16:30.117049Z"}], "thread_id": "Thread-1", "execution_time": 0.0055828094482421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.119473Z", "completed_at": "2022-11-08T22:16:30.123163Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.123631Z", "completed_at": "2022-11-08T22:16:30.123642Z"}], "thread_id": "Thread-1", "execution_time": 0.0056688785552978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.126094Z", "completed_at": "2022-11-08T22:16:30.663267Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:30.663932Z", "completed_at": "2022-11-08T22:16:30.663947Z"}], "thread_id": "Thread-1", "execution_time": 0.5395650863647461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:30.667362Z", "completed_at": "2022-11-08T22:16:31.225878Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:31.226410Z", "completed_at": "2022-11-08T22:16:31.226426Z"}], "thread_id": "Thread-1", "execution_time": 0.5608911514282227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:31.229387Z", "completed_at": "2022-11-08T22:16:31.805449Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:31.805960Z", "completed_at": "2022-11-08T22:16:31.805974Z"}], "thread_id": "Thread-1", "execution_time": 0.5783369541168213, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:31.808878Z", "completed_at": "2022-11-08T22:16:32.294090Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:32.295066Z", "completed_at": "2022-11-08T22:16:32.295085Z"}], "thread_id": "Thread-1", "execution_time": 0.4882481098175049, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:32.298620Z", "completed_at": "2022-11-08T22:16:32.988930Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:32.989444Z", "completed_at": "2022-11-08T22:16:32.989457Z"}], "thread_id": "Thread-1", "execution_time": 0.6931478977203369, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:32.992290Z", "completed_at": "2022-11-08T22:16:33.606341Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:33.606848Z", "completed_at": "2022-11-08T22:16:33.606862Z"}], "thread_id": "Thread-1", "execution_time": 0.6162400245666504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:33.609764Z", "completed_at": "2022-11-08T22:16:34.144487Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:34.145266Z", "completed_at": "2022-11-08T22:16:34.145281Z"}], "thread_id": "Thread-1", "execution_time": 0.5373637676239014, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:34.148474Z", "completed_at": "2022-11-08T22:16:34.718025Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:34.718569Z", "completed_at": "2022-11-08T22:16:34.718583Z"}], "thread_id": "Thread-1", "execution_time": 0.5718798637390137, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:34.721467Z", "completed_at": "2022-11-08T22:16:35.257848Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:35.258381Z", "completed_at": "2022-11-08T22:16:35.258395Z"}], "thread_id": "Thread-1", "execution_time": 0.5386857986450195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:35.261177Z", "completed_at": "2022-11-08T22:16:35.852659Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:35.853171Z", "completed_at": "2022-11-08T22:16:35.853184Z"}], "thread_id": "Thread-1", "execution_time": 0.593632698059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:35.856099Z", "completed_at": "2022-11-08T22:16:36.418450Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:36.419092Z", "completed_at": "2022-11-08T22:16:36.419106Z"}], "thread_id": "Thread-1", "execution_time": 0.5648646354675293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:36.422170Z", "completed_at": "2022-11-08T22:16:36.975157Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:36.975970Z", "completed_at": "2022-11-08T22:16:36.975988Z"}], "thread_id": "Thread-1", "execution_time": 0.5558657646179199, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:36.979532Z", "completed_at": "2022-11-08T22:16:37.464374Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:37.464885Z", "completed_at": "2022-11-08T22:16:37.464899Z"}], "thread_id": "Thread-1", "execution_time": 0.4870259761810303, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:37.467781Z", "completed_at": "2022-11-08T22:16:37.937753Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:37.938694Z", "completed_at": "2022-11-08T22:16:37.938711Z"}], "thread_id": "Thread-1", "execution_time": 0.47291111946105957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:37.942216Z", "completed_at": "2022-11-08T22:16:38.494738Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:38.495536Z", "completed_at": "2022-11-08T22:16:38.495555Z"}], "thread_id": "Thread-1", "execution_time": 0.5554170608520508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:38.499207Z", "completed_at": "2022-11-08T22:16:39.141069Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:39.141952Z", "completed_at": "2022-11-08T22:16:39.141969Z"}], "thread_id": "Thread-1", "execution_time": 0.64534592628479, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:39.145473Z", "completed_at": "2022-11-08T22:16:39.613987Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:39.614951Z", "completed_at": "2022-11-08T22:16:39.614969Z"}], "thread_id": "Thread-1", "execution_time": 0.4715719223022461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:39.618459Z", "completed_at": "2022-11-08T22:16:40.189496Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:40.190042Z", "completed_at": "2022-11-08T22:16:40.190056Z"}], "thread_id": "Thread-1", "execution_time": 0.5738589763641357, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:40.193026Z", "completed_at": "2022-11-08T22:16:40.680391Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:40.681332Z", "completed_at": "2022-11-08T22:16:40.681351Z"}], "thread_id": "Thread-1", "execution_time": 0.49036598205566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:40.684835Z", "completed_at": "2022-11-08T22:16:41.188281Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:41.189112Z", "completed_at": "2022-11-08T22:16:41.189130Z"}], "thread_id": "Thread-1", "execution_time": 0.5063610076904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:41.192658Z", "completed_at": "2022-11-08T22:16:41.725449Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:41.726274Z", "completed_at": "2022-11-08T22:16:41.726293Z"}], "thread_id": "Thread-1", "execution_time": 0.5357069969177246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:41.729835Z", "completed_at": "2022-11-08T22:16:42.254433Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:42.254963Z", "completed_at": "2022-11-08T22:16:42.254976Z"}], "thread_id": "Thread-1", "execution_time": 0.5269680023193359, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:42.257896Z", "completed_at": "2022-11-08T22:16:42.837379Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:42.837883Z", "completed_at": "2022-11-08T22:16:42.837896Z"}], "thread_id": "Thread-1", "execution_time": 0.581758975982666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:42.840789Z", "completed_at": "2022-11-08T22:16:43.327701Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:43.328531Z", "completed_at": "2022-11-08T22:16:43.328549Z"}], "thread_id": "Thread-1", "execution_time": 0.48981499671936035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:43.332095Z", "completed_at": "2022-11-08T22:16:43.886675Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:43.887187Z", "completed_at": "2022-11-08T22:16:43.887201Z"}], "thread_id": "Thread-1", "execution_time": 0.5569429397583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:43.890062Z", "completed_at": "2022-11-08T22:16:44.463458Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:44.464423Z", "completed_at": "2022-11-08T22:16:44.464441Z"}], "thread_id": "Thread-1", "execution_time": 0.5763897895812988, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:44.467917Z", "completed_at": "2022-11-08T22:16:44.953292Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:44.953890Z", "completed_at": "2022-11-08T22:16:44.953905Z"}], "thread_id": "Thread-1", "execution_time": 0.48781585693359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:44.956874Z", "completed_at": "2022-11-08T22:16:45.497414Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:45.498072Z", "completed_at": "2022-11-08T22:16:45.498087Z"}], "thread_id": "Thread-1", "execution_time": 0.5430467128753662, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:45.501046Z", "completed_at": "2022-11-08T22:16:45.996617Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:45.997256Z", "completed_at": "2022-11-08T22:16:45.997271Z"}], "thread_id": "Thread-1", "execution_time": 0.4980299472808838, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:46.000227Z", "completed_at": "2022-11-08T22:16:46.499382Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:46.499895Z", "completed_at": "2022-11-08T22:16:46.499909Z"}], "thread_id": "Thread-1", "execution_time": 0.5014400482177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:46.502795Z", "completed_at": "2022-11-08T22:16:47.132127Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:47.132649Z", "completed_at": "2022-11-08T22:16:47.132662Z"}], "thread_id": "Thread-1", "execution_time": 0.6316349506378174, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:47.135638Z", "completed_at": "2022-11-08T22:16:47.661022Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:47.661700Z", "completed_at": "2022-11-08T22:16:47.661714Z"}], "thread_id": "Thread-1", "execution_time": 0.5279698371887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:47.664785Z", "completed_at": "2022-11-08T22:16:48.166049Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:48.166709Z", "completed_at": "2022-11-08T22:16:48.166724Z"}], "thread_id": "Thread-1", "execution_time": 0.503795862197876, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:48.169713Z", "completed_at": "2022-11-08T22:16:48.662595Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:48.663133Z", "completed_at": "2022-11-08T22:16:48.663147Z"}], "thread_id": "Thread-1", "execution_time": 0.4951479434967041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:48.666030Z", "completed_at": "2022-11-08T22:16:49.201286Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:49.201948Z", "completed_at": "2022-11-08T22:16:49.201963Z"}], "thread_id": "Thread-1", "execution_time": 0.5377771854400635, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:49.204969Z", "completed_at": "2022-11-08T22:16:49.715961Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:49.716895Z", "completed_at": "2022-11-08T22:16:49.716913Z"}], "thread_id": "Thread-1", "execution_time": 0.5139682292938232, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:49.720222Z", "completed_at": "2022-11-08T22:16:50.290291Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:50.290838Z", "completed_at": "2022-11-08T22:16:50.290852Z"}], "thread_id": "Thread-1", "execution_time": 0.5726621150970459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:50.293697Z", "completed_at": "2022-11-08T22:16:50.721533Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:50.722471Z", "completed_at": "2022-11-08T22:16:50.722490Z"}], "thread_id": "Thread-1", "execution_time": 0.4307839870452881, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:50.725900Z", "completed_at": "2022-11-08T22:16:51.264464Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:51.264991Z", "completed_at": "2022-11-08T22:16:51.265004Z"}], "thread_id": "Thread-1", "execution_time": 0.5408890247344971, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:51.267919Z", "completed_at": "2022-11-08T22:16:51.761581Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:51.762104Z", "completed_at": "2022-11-08T22:16:51.762118Z"}], "thread_id": "Thread-1", "execution_time": 0.4959712028503418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:51.765034Z", "completed_at": "2022-11-08T22:16:52.268113Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:52.268622Z", "completed_at": "2022-11-08T22:16:52.268634Z"}], "thread_id": "Thread-1", "execution_time": 0.5053610801696777, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:52.271369Z", "completed_at": "2022-11-08T22:16:52.781254Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:52.782127Z", "completed_at": "2022-11-08T22:16:52.782146Z"}], "thread_id": "Thread-1", "execution_time": 0.5126731395721436, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:52.785586Z", "completed_at": "2022-11-08T22:16:53.321766Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:53.322284Z", "completed_at": "2022-11-08T22:16:53.322297Z"}], "thread_id": "Thread-1", "execution_time": 0.5389149188995361, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:53.325173Z", "completed_at": "2022-11-08T22:16:53.846081Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:53.846904Z", "completed_at": "2022-11-08T22:16:53.846922Z"}], "thread_id": "Thread-1", "execution_time": 0.5237448215484619, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:53.850434Z", "completed_at": "2022-11-08T22:16:54.497032Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:54.497548Z", "completed_at": "2022-11-08T22:16:54.497562Z"}], "thread_id": "Thread-1", "execution_time": 0.6489551067352295, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:54.500410Z", "completed_at": "2022-11-08T22:16:55.030304Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:55.031277Z", "completed_at": "2022-11-08T22:16:55.031295Z"}], "thread_id": "Thread-1", "execution_time": 0.5328812599182129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:55.034716Z", "completed_at": "2022-11-08T22:16:55.577248Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:55.577766Z", "completed_at": "2022-11-08T22:16:55.577779Z"}], "thread_id": "Thread-1", "execution_time": 0.5446889400482178, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:55.580658Z", "completed_at": "2022-11-08T22:16:56.041141Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:56.041812Z", "completed_at": "2022-11-08T22:16:56.041828Z"}], "thread_id": "Thread-1", "execution_time": 0.46303296089172363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:56.044849Z", "completed_at": "2022-11-08T22:16:56.597559Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:56.598203Z", "completed_at": "2022-11-08T22:16:56.598218Z"}], "thread_id": "Thread-1", "execution_time": 0.5551931858062744, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:56.601188Z", "completed_at": "2022-11-08T22:16:57.211197Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:57.211712Z", "completed_at": "2022-11-08T22:16:57.211726Z"}], "thread_id": "Thread-1", "execution_time": 0.6123189926147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:57.214587Z", "completed_at": "2022-11-08T22:16:57.723843Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:57.724360Z", "completed_at": "2022-11-08T22:16:57.724373Z"}], "thread_id": "Thread-1", "execution_time": 0.5115289688110352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:57.727242Z", "completed_at": "2022-11-08T22:16:58.251551Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:58.252068Z", "completed_at": "2022-11-08T22:16:58.252082Z"}], "thread_id": "Thread-1", "execution_time": 0.5265967845916748, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:58.254936Z", "completed_at": "2022-11-08T22:16:58.677336Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:58.677864Z", "completed_at": "2022-11-08T22:16:58.677877Z"}], "thread_id": "Thread-1", "execution_time": 0.4246711730957031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:58.680749Z", "completed_at": "2022-11-08T22:16:59.179986Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:59.180803Z", "completed_at": "2022-11-08T22:16:59.180822Z"}], "thread_id": "Thread-1", "execution_time": 0.5021252632141113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:59.184349Z", "completed_at": "2022-11-08T22:16:59.683729Z"}, {"name": "execute", "started_at": "2022-11-08T22:16:59.684547Z", "completed_at": "2022-11-08T22:16:59.684565Z"}], "thread_id": "Thread-1", "execution_time": 0.5022950172424316, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:16:59.688024Z", "completed_at": "2022-11-08T22:17:00.121078Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:00.121740Z", "completed_at": "2022-11-08T22:17:00.121754Z"}], "thread_id": "Thread-1", "execution_time": 0.4360020160675049, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:00.124720Z", "completed_at": "2022-11-08T22:17:00.663079Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:00.663587Z", "completed_at": "2022-11-08T22:17:00.663600Z"}], "thread_id": "Thread-1", "execution_time": 0.5406219959259033, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:00.666444Z", "completed_at": "2022-11-08T22:17:01.195723Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:01.196227Z", "completed_at": "2022-11-08T22:17:01.196240Z"}], "thread_id": "Thread-1", "execution_time": 0.5315570831298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:01.199079Z", "completed_at": "2022-11-08T22:17:01.711619Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:01.712281Z", "completed_at": "2022-11-08T22:17:01.712297Z"}], "thread_id": "Thread-1", "execution_time": 0.5150368213653564, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:01.715373Z", "completed_at": "2022-11-08T22:17:02.217710Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:02.218239Z", "completed_at": "2022-11-08T22:17:02.218253Z"}], "thread_id": "Thread-1", "execution_time": 0.5047111511230469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:02.221151Z", "completed_at": "2022-11-08T22:17:02.759764Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:02.760279Z", "completed_at": "2022-11-08T22:17:02.760293Z"}], "thread_id": "Thread-1", "execution_time": 0.5409300327301025, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:02.763129Z", "completed_at": "2022-11-08T22:17:03.370083Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:03.370614Z", "completed_at": "2022-11-08T22:17:03.370627Z"}], "thread_id": "Thread-1", "execution_time": 0.6092739105224609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:03.373471Z", "completed_at": "2022-11-08T22:17:03.935715Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:03.936657Z", "completed_at": "2022-11-08T22:17:03.936675Z"}], "thread_id": "Thread-1", "execution_time": 0.565173864364624, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:03.940077Z", "completed_at": "2022-11-08T22:17:04.441680Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:04.442323Z", "completed_at": "2022-11-08T22:17:04.442337Z"}], "thread_id": "Thread-1", "execution_time": 0.5040721893310547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:04.445381Z", "completed_at": "2022-11-08T22:17:04.984309Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:04.984814Z", "completed_at": "2022-11-08T22:17:04.984828Z"}], "thread_id": "Thread-1", "execution_time": 0.5412278175354004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:04.987719Z", "completed_at": "2022-11-08T22:17:05.467249Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:05.467778Z", "completed_at": "2022-11-08T22:17:05.467791Z"}], "thread_id": "Thread-1", "execution_time": 0.48186707496643066, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:05.470753Z", "completed_at": "2022-11-08T22:17:05.991210Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:05.991722Z", "completed_at": "2022-11-08T22:17:05.991736Z"}], "thread_id": "Thread-1", "execution_time": 0.5227320194244385, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:05.994605Z", "completed_at": "2022-11-08T22:17:06.465397Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:06.466254Z", "completed_at": "2022-11-08T22:17:06.466272Z"}], "thread_id": "Thread-1", "execution_time": 0.47371602058410645, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:06.469772Z", "completed_at": "2022-11-08T22:17:07.044813Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:07.045332Z", "completed_at": "2022-11-08T22:17:07.045345Z"}], "thread_id": "Thread-1", "execution_time": 0.577775239944458, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:07.048243Z", "completed_at": "2022-11-08T22:17:07.600585Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:07.601128Z", "completed_at": "2022-11-08T22:17:07.601143Z"}], "thread_id": "Thread-1", "execution_time": 0.5546841621398926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:07.604046Z", "completed_at": "2022-11-08T22:17:08.169404Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:08.169912Z", "completed_at": "2022-11-08T22:17:08.169925Z"}], "thread_id": "Thread-1", "execution_time": 0.5676093101501465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:08.172815Z", "completed_at": "2022-11-08T22:17:08.767492Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:08.768142Z", "completed_at": "2022-11-08T22:17:08.768158Z"}], "thread_id": "Thread-1", "execution_time": 0.5971918106079102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:08.771144Z", "completed_at": "2022-11-08T22:17:09.366647Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:09.367226Z", "completed_at": "2022-11-08T22:17:09.367240Z"}], "thread_id": "Thread-1", "execution_time": 0.5978960990905762, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:09.370161Z", "completed_at": "2022-11-08T22:17:09.995454Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:09.995971Z", "completed_at": "2022-11-08T22:17:09.995985Z"}], "thread_id": "Thread-1", "execution_time": 0.6275801658630371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:09.998802Z", "completed_at": "2022-11-08T22:17:10.687554Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:10.688160Z", "completed_at": "2022-11-08T22:17:10.688175Z"}], "thread_id": "Thread-1", "execution_time": 0.6911907196044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:10.691091Z", "completed_at": "2022-11-08T22:17:11.197533Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:11.198046Z", "completed_at": "2022-11-08T22:17:11.198060Z"}], "thread_id": "Thread-1", "execution_time": 0.5087149143218994, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:11.200986Z", "completed_at": "2022-11-08T22:17:11.667523Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:11.668196Z", "completed_at": "2022-11-08T22:17:11.668211Z"}], "thread_id": "Thread-1", "execution_time": 0.46913886070251465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:11.671180Z", "completed_at": "2022-11-08T22:17:12.219666Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.220752Z", "completed_at": "2022-11-08T22:17:12.220770Z"}], "thread_id": "Thread-1", "execution_time": 0.5516097545623779, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.224261Z", "completed_at": "2022-11-08T22:17:12.236393Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.236918Z", "completed_at": "2022-11-08T22:17:12.236932Z"}], "thread_id": "Thread-1", "execution_time": 0.01447296142578125, "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_ad_group_id__modified_at.84af14c83b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.239502Z", "completed_at": "2022-11-08T22:17:12.257796Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.258292Z", "completed_at": "2022-11-08T22:17:12.258304Z"}], "thread_id": "Thread-1", "execution_time": 0.02033686637878418, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.260810Z", "completed_at": "2022-11-08T22:17:12.268514Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.269021Z", "completed_at": "2022-11-08T22:17:12.269032Z"}], "thread_id": "Thread-1", "execution_time": 0.009752750396728516, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.271539Z", "completed_at": "2022-11-08T22:17:12.280626Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.281117Z", "completed_at": "2022-11-08T22:17:12.281129Z"}], "thread_id": "Thread-1", "execution_time": 0.011134147644042969, "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_ad_group_id__date_day.a0fcc4e33c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.283544Z", "completed_at": "2022-11-08T22:17:12.292851Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.293356Z", "completed_at": "2022-11-08T22:17:12.293368Z"}], "thread_id": "Thread-1", "execution_time": 0.011350870132446289, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.295784Z", "completed_at": "2022-11-08T22:17:12.303523Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.304015Z", "completed_at": "2022-11-08T22:17:12.304026Z"}], "thread_id": "Thread-1", "execution_time": 0.009744882583618164, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.306447Z", "completed_at": "2022-11-08T22:17:12.315572Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.316088Z", "completed_at": "2022-11-08T22:17:12.316100Z"}], "thread_id": "Thread-1", "execution_time": 0.011179924011230469, "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_ad_id__modified_at.38599b8cba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.318543Z", "completed_at": "2022-11-08T22:17:12.326148Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.326650Z", "completed_at": "2022-11-08T22:17:12.326662Z"}], "thread_id": "Thread-1", "execution_time": 0.009634971618652344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.329121Z", "completed_at": "2022-11-08T22:17:12.338505Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.339010Z", "completed_at": "2022-11-08T22:17:12.339021Z"}], "thread_id": "Thread-1", "execution_time": 0.011432170867919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.341459Z", "completed_at": "2022-11-08T22:17:12.351453Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.351949Z", "completed_at": "2022-11-08T22:17:12.351961Z"}], "thread_id": "Thread-1", "execution_time": 0.012020111083984375, "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_ad_id__date_day__ad_group_id.0d8d23c516"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.354405Z", "completed_at": "2022-11-08T22:17:12.361995Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.362488Z", "completed_at": "2022-11-08T22:17:12.362500Z"}], "thread_id": "Thread-1", "execution_time": 0.009603023529052734, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.364954Z", "completed_at": "2022-11-08T22:17:12.374247Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.374749Z", "completed_at": "2022-11-08T22:17:12.374761Z"}], "thread_id": "Thread-1", "execution_time": 0.011333942413330078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.377204Z", "completed_at": "2022-11-08T22:17:12.384801Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.385300Z", "completed_at": "2022-11-08T22:17:12.385310Z"}], "thread_id": "Thread-1", "execution_time": 0.009626150131225586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.387744Z", "completed_at": "2022-11-08T22:17:12.397132Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.397631Z", "completed_at": "2022-11-08T22:17:12.397643Z"}], "thread_id": "Thread-1", "execution_time": 0.011413812637329102, "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_campaign_id__modified_at.317f970af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.400118Z", "completed_at": "2022-11-08T22:17:12.407811Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.408300Z", "completed_at": "2022-11-08T22:17:12.408311Z"}], "thread_id": "Thread-1", "execution_time": 0.009710073471069336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.410828Z", "completed_at": "2022-11-08T22:17:12.420711Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.421225Z", "completed_at": "2022-11-08T22:17:12.421238Z"}], "thread_id": "Thread-1", "execution_time": 0.011967182159423828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.423777Z", "completed_at": "2022-11-08T22:17:12.433312Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.433813Z", "completed_at": "2022-11-08T22:17:12.433824Z"}], "thread_id": "Thread-1", "execution_time": 0.011596918106079102, "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_campaign_id__date_day.bad41b0481"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.436318Z", "completed_at": "2022-11-08T22:17:12.444306Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.444810Z", "completed_at": "2022-11-08T22:17:12.444821Z"}], "thread_id": "Thread-1", "execution_time": 0.010117292404174805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.447424Z", "completed_at": "2022-11-08T22:17:12.455680Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.456213Z", "completed_at": "2022-11-08T22:17:12.456227Z"}], "thread_id": "Thread-1", "execution_time": 0.010378122329711914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.458823Z", "completed_at": "2022-11-08T22:17:12.470038Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.470534Z", "completed_at": "2022-11-08T22:17:12.470547Z"}], "thread_id": "Thread-1", "execution_time": 0.013247013092041016, "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_keyword_id__modified_at.7b06162d24"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.473055Z", "completed_at": "2022-11-08T22:17:12.481253Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.481772Z", "completed_at": "2022-11-08T22:17:12.481784Z"}], "thread_id": "Thread-1", "execution_time": 0.010285139083862305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.484323Z", "completed_at": "2022-11-08T22:17:12.492272Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.492785Z", "completed_at": "2022-11-08T22:17:12.492799Z"}], "thread_id": "Thread-1", "execution_time": 0.010039091110229492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.495407Z", "completed_at": "2022-11-08T22:17:12.507134Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.507656Z", "completed_at": "2022-11-08T22:17:12.507670Z"}], "thread_id": "Thread-1", "execution_time": 0.01387333869934082, "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_keyword_id__date_day.9f0099cff8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.510227Z", "completed_at": "2022-11-08T22:17:12.518151Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.518659Z", "completed_at": "2022-11-08T22:17:12.518671Z"}], "thread_id": "Thread-1", "execution_time": 0.009981870651245117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.521157Z", "completed_at": "2022-11-08T22:17:12.529229Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.529736Z", "completed_at": "2022-11-08T22:17:12.529748Z"}], "thread_id": "Thread-1", "execution_time": 0.010128021240234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.532270Z", "completed_at": "2022-11-08T22:17:12.545723Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.546258Z", "completed_at": "2022-11-08T22:17:12.546272Z"}], "thread_id": "Thread-1", "execution_time": 0.015568017959594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.549138Z", "completed_at": "2022-11-08T22:17:12.566791Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.567326Z", "completed_at": "2022-11-08T22:17:12.567339Z"}], "thread_id": "Thread-1", "execution_time": 0.019962072372436523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.570214Z", "completed_at": "2022-11-08T22:17:12.582074Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.582593Z", "completed_at": "2022-11-08T22:17:12.582607Z"}], "thread_id": "Thread-1", "execution_time": 0.014171838760375977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.585658Z", "completed_at": "2022-11-08T22:17:12.600604Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.601132Z", "completed_at": "2022-11-08T22:17:12.601145Z"}], "thread_id": "Thread-1", "execution_time": 0.017479896545410156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.603960Z", "completed_at": "2022-11-08T22:17:12.617461Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.617975Z", "completed_at": "2022-11-08T22:17:12.617987Z"}], "thread_id": "Thread-1", "execution_time": 0.015776872634887695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.620782Z", "completed_at": "2022-11-08T22:17:12.629634Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.630139Z", "completed_at": "2022-11-08T22:17:12.630151Z"}], "thread_id": "Thread-1", "execution_time": 0.011104106903076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id.8647048f7a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.632678Z", "completed_at": "2022-11-08T22:17:12.640716Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.641246Z", "completed_at": "2022-11-08T22:17:12.641259Z"}], "thread_id": "Thread-1", "execution_time": 0.010161876678466797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.644395Z", "completed_at": "2022-11-08T22:17:12.657554Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.658084Z", "completed_at": "2022-11-08T22:17:12.658098Z"}], "thread_id": "Thread-1", "execution_time": 0.015811920166015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.660952Z", "completed_at": "2022-11-08T22:17:12.672456Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.672965Z", "completed_at": "2022-11-08T22:17:12.672978Z"}], "thread_id": "Thread-1", "execution_time": 0.013752937316894531, "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__fivetran_id__date_day.aad2a48344"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.675500Z", "completed_at": "2022-11-08T22:17:12.683889Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.684421Z", "completed_at": "2022-11-08T22:17:12.684435Z"}], "thread_id": "Thread-1", "execution_time": 0.010593891143798828, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.687083Z", "completed_at": "2022-11-08T22:17:12.695060Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.695565Z", "completed_at": "2022-11-08T22:17:12.695576Z"}], "thread_id": "Thread-1", "execution_time": 0.01004791259765625, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.698104Z", "completed_at": "2022-11-08T22:17:12.709625Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.710177Z", "completed_at": "2022-11-08T22:17:12.710191Z"}], "thread_id": "Thread-1", "execution_time": 0.013653039932250977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced.f9b4d28fa2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.712825Z", "completed_at": "2022-11-08T22:17:12.721144Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.721672Z", "completed_at": "2022-11-08T22:17:12.721686Z"}], "thread_id": "Thread-1", "execution_time": 0.010461091995239258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.724352Z", "completed_at": "2022-11-08T22:17:12.733211Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.733764Z", "completed_at": "2022-11-08T22:17:12.733778Z"}], "thread_id": "Thread-1", "execution_time": 0.011071920394897461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.736897Z", "completed_at": "2022-11-08T22:17:12.747222Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.747876Z", "completed_at": "2022-11-08T22:17:12.747892Z"}], "thread_id": "Thread-1", "execution_time": 0.012711048126220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at.2922c18b58"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.750821Z", "completed_at": "2022-11-08T22:17:12.762404Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.762971Z", "completed_at": "2022-11-08T22:17:12.762986Z"}], "thread_id": "Thread-1", "execution_time": 0.013940811157226562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.765677Z", "completed_at": "2022-11-08T22:17:12.774221Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.774760Z", "completed_at": "2022-11-08T22:17:12.774775Z"}], "thread_id": "Thread-1", "execution_time": 0.010744094848632812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.777620Z", "completed_at": "2022-11-08T22:17:12.788228Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.788761Z", "completed_at": "2022-11-08T22:17:12.788775Z"}], "thread_id": "Thread-1", "execution_time": 0.012809038162231445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at.0a60ad0fef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.791469Z", "completed_at": "2022-11-08T22:17:12.800152Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.800694Z", "completed_at": "2022-11-08T22:17:12.800708Z"}], "thread_id": "Thread-1", "execution_time": 0.01089787483215332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.803324Z", "completed_at": "2022-11-08T22:17:12.813857Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.814388Z", "completed_at": "2022-11-08T22:17:12.814403Z"}], "thread_id": "Thread-1", "execution_time": 0.012656927108764648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.817098Z", "completed_at": "2022-11-08T22:17:12.829344Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.829947Z", "completed_at": "2022-11-08T22:17:12.829963Z"}], "thread_id": "Thread-1", "execution_time": 0.014853954315185547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.833366Z", "completed_at": "2022-11-08T22:17:12.844729Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.845287Z", "completed_at": "2022-11-08T22:17:12.845302Z"}], "thread_id": "Thread-1", "execution_time": 0.013868093490600586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id.bd909529e7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.848132Z", "completed_at": "2022-11-08T22:17:12.858814Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.859369Z", "completed_at": "2022-11-08T22:17:12.859384Z"}], "thread_id": "Thread-1", "execution_time": 0.012970447540283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.862436Z", "completed_at": "2022-11-08T22:17:12.871235Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.871793Z", "completed_at": "2022-11-08T22:17:12.871809Z"}], "thread_id": "Thread-1", "execution_time": 0.011369943618774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.874454Z", "completed_at": "2022-11-08T22:17:12.889395Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.889913Z", "completed_at": "2022-11-08T22:17:12.889927Z"}], "thread_id": "Thread-1", "execution_time": 0.01702570915222168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.892701Z", "completed_at": "2022-11-08T22:17:12.907660Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.908195Z", "completed_at": "2022-11-08T22:17:12.908208Z"}], "thread_id": "Thread-1", "execution_time": 0.017069101333618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.910941Z", "completed_at": "2022-11-08T22:17:12.925858Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.926380Z", "completed_at": "2022-11-08T22:17:12.926394Z"}], "thread_id": "Thread-1", "execution_time": 0.017160892486572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.929225Z", "completed_at": "2022-11-08T22:17:12.939050Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.939552Z", "completed_at": "2022-11-08T22:17:12.939565Z"}], "thread_id": "Thread-1", "execution_time": 0.012057781219482422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at.7437b392c2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.942027Z", "completed_at": "2022-11-08T22:17:12.950117Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.950640Z", "completed_at": "2022-11-08T22:17:12.950655Z"}], "thread_id": "Thread-1", "execution_time": 0.010196924209594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.953276Z", "completed_at": "2022-11-08T22:17:12.963065Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.963583Z", "completed_at": "2022-11-08T22:17:12.963596Z"}], "thread_id": "Thread-1", "execution_time": 0.012204885482788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.966142Z", "completed_at": "2022-11-08T22:17:12.975096Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.975787Z", "completed_at": "2022-11-08T22:17:12.975805Z"}], "thread_id": "Thread-1", "execution_time": 0.01134490966796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.978886Z", "completed_at": "2022-11-08T22:17:12.989086Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:12.989608Z", "completed_at": "2022-11-08T22:17:12.989622Z"}], "thread_id": "Thread-1", "execution_time": 0.012556076049804688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced.69ddc26562"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:12.992247Z", "completed_at": "2022-11-08T22:17:13.000778Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.001321Z", "completed_at": "2022-11-08T22:17:13.001336Z"}], "thread_id": "Thread-1", "execution_time": 0.010732889175415039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.003944Z", "completed_at": "2022-11-08T22:17:13.014382Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.014904Z", "completed_at": "2022-11-08T22:17:13.014918Z"}], "thread_id": "Thread-1", "execution_time": 0.012574911117553711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.017542Z", "completed_at": "2022-11-08T22:17:13.027719Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.028230Z", "completed_at": "2022-11-08T22:17:13.028243Z"}], "thread_id": "Thread-1", "execution_time": 0.012296915054321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at.19f35742f1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.030774Z", "completed_at": "2022-11-08T22:17:13.039132Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.039675Z", "completed_at": "2022-11-08T22:17:13.039689Z"}], "thread_id": "Thread-1", "execution_time": 0.010489940643310547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.042221Z", "completed_at": "2022-11-08T22:17:13.052840Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.053360Z", "completed_at": "2022-11-08T22:17:13.053374Z"}], "thread_id": "Thread-1", "execution_time": 0.01270294189453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.056149Z", "completed_at": "2022-11-08T22:17:13.069206Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.069721Z", "completed_at": "2022-11-08T22:17:13.069734Z"}], "thread_id": "Thread-1", "execution_time": 0.01516413688659668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day.3019f8a860"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.072279Z", "completed_at": "2022-11-08T22:17:13.080475Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.081007Z", "completed_at": "2022-11-08T22:17:13.081021Z"}], "thread_id": "Thread-1", "execution_time": 0.010409832000732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.083773Z", "completed_at": "2022-11-08T22:17:13.092485Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.093010Z", "completed_at": "2022-11-08T22:17:13.093023Z"}], "thread_id": "Thread-1", "execution_time": 0.011230945587158203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.095657Z", "completed_at": "2022-11-08T22:17:13.107374Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.107880Z", "completed_at": "2022-11-08T22:17:13.107894Z"}], "thread_id": "Thread-1", "execution_time": 0.013772010803222656, "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_criterion_id__ad_group_id__updated_at.197bbc6816"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.110419Z", "completed_at": "2022-11-08T22:17:13.118977Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.119478Z", "completed_at": "2022-11-08T22:17:13.119495Z"}], "thread_id": "Thread-1", "execution_time": 0.010622024536132812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.121986Z", "completed_at": "2022-11-08T22:17:13.131559Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.132068Z", "completed_at": "2022-11-08T22:17:13.132081Z"}], "thread_id": "Thread-1", "execution_time": 0.011635065078735352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at.096e8da5fd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.134608Z", "completed_at": "2022-11-08T22:17:13.142920Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.143459Z", "completed_at": "2022-11-08T22:17:13.143475Z"}], "thread_id": "Thread-1", "execution_time": 0.010452985763549805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.146051Z", "completed_at": "2022-11-08T22:17:13.158866Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.159379Z", "completed_at": "2022-11-08T22:17:13.159392Z"}], "thread_id": "Thread-1", "execution_time": 0.01488637924194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day.ed55af6020"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.161935Z", "completed_at": "2022-11-08T22:17:13.170035Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.170557Z", "completed_at": "2022-11-08T22:17:13.170571Z"}], "thread_id": "Thread-1", "execution_time": 0.010215044021606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.173208Z", "completed_at": "2022-11-08T22:17:13.181528Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.182059Z", "completed_at": "2022-11-08T22:17:13.182073Z"}], "thread_id": "Thread-1", "execution_time": 0.010470867156982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.184603Z", "completed_at": "2022-11-08T22:17:13.197307Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.197813Z", "completed_at": "2022-11-08T22:17:13.197826Z"}], "thread_id": "Thread-1", "execution_time": 0.01476287841796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___.7dddbd81e7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.200352Z", "completed_at": "2022-11-08T22:17:13.210676Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.211196Z", "completed_at": "2022-11-08T22:17:13.211209Z"}], "thread_id": "Thread-1", "execution_time": 0.012397050857543945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.213725Z", "completed_at": "2022-11-08T22:17:13.221589Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.222085Z", "completed_at": "2022-11-08T22:17:13.222097Z"}], "thread_id": "Thread-1", "execution_time": 0.009896993637084961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.224614Z", "completed_at": "2022-11-08T22:17:13.237364Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.237868Z", "completed_at": "2022-11-08T22:17:13.237880Z"}], "thread_id": "Thread-1", "execution_time": 0.014811992645263672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.240371Z", "completed_at": "2022-11-08T22:17:13.249781Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.250292Z", "completed_at": "2022-11-08T22:17:13.250304Z"}], "thread_id": "Thread-1", "execution_time": 0.011461019515991211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.252816Z", "completed_at": "2022-11-08T22:17:13.260776Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.261278Z", "completed_at": "2022-11-08T22:17:13.261290Z"}], "thread_id": "Thread-1", "execution_time": 0.010022163391113281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.263778Z", "completed_at": "2022-11-08T22:17:13.277308Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.277844Z", "completed_at": "2022-11-08T22:17:13.277858Z"}], "thread_id": "Thread-1", "execution_time": 0.015638113021850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.280633Z", "completed_at": "2022-11-08T22:17:13.295566Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.296091Z", "completed_at": "2022-11-08T22:17:13.296104Z"}], "thread_id": "Thread-1", "execution_time": 0.01704716682434082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.298907Z", "completed_at": "2022-11-08T22:17:13.317546Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.318070Z", "completed_at": "2022-11-08T22:17:13.318086Z"}], "thread_id": "Thread-1", "execution_time": 0.02073073387145996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.320829Z", "completed_at": "2022-11-08T22:17:13.330523Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.331028Z", "completed_at": "2022-11-08T22:17:13.331040Z"}], "thread_id": "Thread-1", "execution_time": 0.011895179748535156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at.8bf2733e86"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.333601Z", "completed_at": "2022-11-08T22:17:13.341787Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.342321Z", "completed_at": "2022-11-08T22:17:13.342334Z"}], "thread_id": "Thread-1", "execution_time": 0.0103302001953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.344913Z", "completed_at": "2022-11-08T22:17:13.358885Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.359430Z", "completed_at": "2022-11-08T22:17:13.359444Z"}], "thread_id": "Thread-1", "execution_time": 0.016103029251098633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.362274Z", "completed_at": "2022-11-08T22:17:13.375067Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.375620Z", "completed_at": "2022-11-08T22:17:13.375636Z"}], "thread_id": "Thread-1", "execution_time": 0.01499485969543457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day.69600f7d45"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.378331Z", "completed_at": "2022-11-08T22:17:13.387090Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.387639Z", "completed_at": "2022-11-08T22:17:13.387653Z"}], "thread_id": "Thread-1", "execution_time": 0.010956048965454102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.390278Z", "completed_at": "2022-11-08T22:17:13.398683Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.399220Z", "completed_at": "2022-11-08T22:17:13.399234Z"}], "thread_id": "Thread-1", "execution_time": 0.010537147521972656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.401806Z", "completed_at": "2022-11-08T22:17:13.418196Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.418731Z", "completed_at": "2022-11-08T22:17:13.418744Z"}], "thread_id": "Thread-1", "execution_time": 0.01851677894592285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.421473Z", "completed_at": "2022-11-08T22:17:13.430948Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.431442Z", "completed_at": "2022-11-08T22:17:13.431455Z"}], "thread_id": "Thread-1", "execution_time": 0.011495113372802734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day.8f15198e68"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.433916Z", "completed_at": "2022-11-08T22:17:13.441930Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.442447Z", "completed_at": "2022-11-08T22:17:13.442459Z"}], "thread_id": "Thread-1", "execution_time": 0.010083913803100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.444957Z", "completed_at": "2022-11-08T22:17:13.546447Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.546966Z", "completed_at": "2022-11-08T22:17:13.546979Z"}], "thread_id": "Thread-1", "execution_time": 0.10356616973876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.549504Z", "completed_at": "2022-11-08T22:17:13.558962Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.559461Z", "completed_at": "2022-11-08T22:17:13.559473Z"}], "thread_id": "Thread-1", "execution_time": 0.011496305465698242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag.9a655993ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.561985Z", "completed_at": "2022-11-08T22:17:13.570279Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.570804Z", "completed_at": "2022-11-08T22:17:13.570818Z"}], "thread_id": "Thread-1", "execution_time": 0.010409832000732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.573363Z", "completed_at": "2022-11-08T22:17:13.581506Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.582028Z", "completed_at": "2022-11-08T22:17:13.582041Z"}], "thread_id": "Thread-1", "execution_time": 0.010246753692626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.584604Z", "completed_at": "2022-11-08T22:17:13.595897Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.596416Z", "completed_at": "2022-11-08T22:17:13.596429Z"}], "thread_id": "Thread-1", "execution_time": 0.013374805450439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id.b03f3dc81d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.598972Z", "completed_at": "2022-11-08T22:17:13.607035Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.607541Z", "completed_at": "2022-11-08T22:17:13.607555Z"}], "thread_id": "Thread-1", "execution_time": 0.010137081146240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.610082Z", "completed_at": "2022-11-08T22:17:13.618352Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.618868Z", "completed_at": "2022-11-08T22:17:13.618880Z"}], "thread_id": "Thread-1", "execution_time": 0.010363101959228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.621424Z", "completed_at": "2022-11-08T22:17:13.631051Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.631569Z", "completed_at": "2022-11-08T22:17:13.631582Z"}], "thread_id": "Thread-1", "execution_time": 0.011736869812011719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id.973a01e410"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.634133Z", "completed_at": "2022-11-08T22:17:13.643980Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.644488Z", "completed_at": "2022-11-08T22:17:13.644502Z"}], "thread_id": "Thread-1", "execution_time": 0.011919975280761719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.647017Z", "completed_at": "2022-11-08T22:17:13.655086Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.655610Z", "completed_at": "2022-11-08T22:17:13.655623Z"}], "thread_id": "Thread-1", "execution_time": 0.010160207748413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.658153Z", "completed_at": "2022-11-08T22:17:13.667962Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.668485Z", "completed_at": "2022-11-08T22:17:13.668498Z"}], "thread_id": "Thread-1", "execution_time": 0.01191091537475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id.e761ddb4da"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.671038Z", "completed_at": "2022-11-08T22:17:13.681111Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.681677Z", "completed_at": "2022-11-08T22:17:13.681691Z"}], "thread_id": "Thread-1", "execution_time": 0.012235164642333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.684265Z", "completed_at": "2022-11-08T22:17:13.692712Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.693230Z", "completed_at": "2022-11-08T22:17:13.693243Z"}], "thread_id": "Thread-1", "execution_time": 0.010540246963500977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.695772Z", "completed_at": "2022-11-08T22:17:13.707972Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.708501Z", "completed_at": "2022-11-08T22:17:13.708514Z"}], "thread_id": "Thread-1", "execution_time": 0.014309883117675781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.711321Z", "completed_at": "2022-11-08T22:17:13.724648Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.725180Z", "completed_at": "2022-11-08T22:17:13.725193Z"}], "thread_id": "Thread-1", "execution_time": 0.01542806625366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.728317Z", "completed_at": "2022-11-08T22:17:13.743648Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.744161Z", "completed_at": "2022-11-08T22:17:13.744174Z"}], "thread_id": "Thread-1", "execution_time": 0.01776599884033203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.747026Z", "completed_at": "2022-11-08T22:17:13.756699Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.757202Z", "completed_at": "2022-11-08T22:17:13.757215Z"}], "thread_id": "Thread-1", "execution_time": 0.01174020767211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id.2d20780793"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.759747Z", "completed_at": "2022-11-08T22:17:13.767840Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.768366Z", "completed_at": "2022-11-08T22:17:13.768378Z"}], "thread_id": "Thread-1", "execution_time": 0.010216951370239258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.770891Z", "completed_at": "2022-11-08T22:17:13.780252Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.780750Z", "completed_at": "2022-11-08T22:17:13.780762Z"}], "thread_id": "Thread-1", "execution_time": 0.011402130126953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.783222Z", "completed_at": "2022-11-08T22:17:13.798133Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.798652Z", "completed_at": "2022-11-08T22:17:13.798666Z"}], "thread_id": "Thread-1", "execution_time": 0.01697993278503418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.801444Z", "completed_at": "2022-11-08T22:17:13.816446Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.816970Z", "completed_at": "2022-11-08T22:17:13.816983Z"}], "thread_id": "Thread-1", "execution_time": 0.01708078384399414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.819793Z", "completed_at": "2022-11-08T22:17:13.829326Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.829825Z", "completed_at": "2022-11-08T22:17:13.829837Z"}], "thread_id": "Thread-1", "execution_time": 0.011588811874389648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.832262Z", "completed_at": "2022-11-08T22:17:13.842064Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.842564Z", "completed_at": "2022-11-08T22:17:13.842577Z"}], "thread_id": "Thread-1", "execution_time": 0.011816024780273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.845052Z", "completed_at": "2022-11-08T22:17:13.853406Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.853926Z", "completed_at": "2022-11-08T22:17:13.853939Z"}], "thread_id": "Thread-1", "execution_time": 0.010438203811645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.856445Z", "completed_at": "2022-11-08T22:17:13.871880Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.872401Z", "completed_at": "2022-11-08T22:17:13.872414Z"}], "thread_id": "Thread-1", "execution_time": 0.017503023147583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.874922Z", "completed_at": "2022-11-08T22:17:13.884939Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.885459Z", "completed_at": "2022-11-08T22:17:13.885472Z"}], "thread_id": "Thread-1", "execution_time": 0.012103080749511719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.887990Z", "completed_at": "2022-11-08T22:17:13.898691Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.899216Z", "completed_at": "2022-11-08T22:17:13.899230Z"}], "thread_id": "Thread-1", "execution_time": 0.012804031372070312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.901991Z", "completed_at": "2022-11-08T22:17:13.911630Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.912135Z", "completed_at": "2022-11-08T22:17:13.912148Z"}], "thread_id": "Thread-1", "execution_time": 0.011709928512573242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at.5975327479"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.914658Z", "completed_at": "2022-11-08T22:17:13.923004Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.923528Z", "completed_at": "2022-11-08T22:17:13.923541Z"}], "thread_id": "Thread-1", "execution_time": 0.010442972183227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.926048Z", "completed_at": "2022-11-08T22:17:13.946689Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.947219Z", "completed_at": "2022-11-08T22:17:13.947233Z"}], "thread_id": "Thread-1", "execution_time": 0.02272200584411621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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.80e8146841"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.949751Z", "completed_at": "2022-11-08T22:17:13.957629Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.958125Z", "completed_at": "2022-11-08T22:17:13.958136Z"}], "thread_id": "Thread-1", "execution_time": 0.009894132614135742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.960602Z", "completed_at": "2022-11-08T22:17:13.978565Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.979121Z", "completed_at": "2022-11-08T22:17:13.979137Z"}], "thread_id": "Thread-1", "execution_time": 0.020129919052124023, "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_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.8792b4adf4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.981842Z", "completed_at": "2022-11-08T22:17:13.991689Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:13.992194Z", "completed_at": "2022-11-08T22:17:13.992206Z"}], "thread_id": "Thread-1", "execution_time": 0.011970996856689453, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:13.994702Z", "completed_at": "2022-11-08T22:17:14.004337Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.004855Z", "completed_at": "2022-11-08T22:17:14.004868Z"}], "thread_id": "Thread-1", "execution_time": 0.011712789535522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at.12004c9de0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.007369Z", "completed_at": "2022-11-08T22:17:14.015494Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.016008Z", "completed_at": "2022-11-08T22:17:14.016021Z"}], "thread_id": "Thread-1", "execution_time": 0.010205745697021484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.018585Z", "completed_at": "2022-11-08T22:17:14.028411Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.028921Z", "completed_at": "2022-11-08T22:17:14.028933Z"}], "thread_id": "Thread-1", "execution_time": 0.011887788772583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at.1f05b4ee6f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.031424Z", "completed_at": "2022-11-08T22:17:14.041507Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.042032Z", "completed_at": "2022-11-08T22:17:14.042046Z"}], "thread_id": "Thread-1", "execution_time": 0.012194156646728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.044625Z", "completed_at": "2022-11-08T22:17:14.061338Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.061865Z", "completed_at": "2022-11-08T22:17:14.061879Z"}], "thread_id": "Thread-1", "execution_time": 0.018819093704223633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.f6a43acb95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.064445Z", "completed_at": "2022-11-08T22:17:14.072442Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.072944Z", "completed_at": "2022-11-08T22:17:14.072956Z"}], "thread_id": "Thread-1", "execution_time": 0.010074853897094727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.075415Z", "completed_at": "2022-11-08T22:17:14.090190Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.090704Z", "completed_at": "2022-11-08T22:17:14.090717Z"}], "thread_id": "Thread-1", "execution_time": 0.0168459415435791, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.093481Z", "completed_at": "2022-11-08T22:17:14.109155Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.109690Z", "completed_at": "2022-11-08T22:17:14.109705Z"}], "thread_id": "Thread-1", "execution_time": 0.0177919864654541, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.112576Z", "completed_at": "2022-11-08T22:17:14.125452Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.126008Z", "completed_at": "2022-11-08T22:17:14.126023Z"}], "thread_id": "Thread-1", "execution_time": 0.015089988708496094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.128927Z", "completed_at": "2022-11-08T22:17:14.160266Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.160816Z", "completed_at": "2022-11-08T22:17:14.160830Z"}], "thread_id": "Thread-1", "execution_time": 0.03352212905883789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.163636Z", "completed_at": "2022-11-08T22:17:14.173235Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.173728Z", "completed_at": "2022-11-08T22:17:14.173740Z"}], "thread_id": "Thread-1", "execution_time": 0.011629819869995117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at.d2a9279427"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.176167Z", "completed_at": "2022-11-08T22:17:14.184495Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.185012Z", "completed_at": "2022-11-08T22:17:14.185024Z"}], "thread_id": "Thread-1", "execution_time": 0.010404825210571289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.187505Z", "completed_at": "2022-11-08T22:17:14.208523Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.209050Z", "completed_at": "2022-11-08T22:17:14.209063Z"}], "thread_id": "Thread-1", "execution_time": 0.02308797836303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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.c6f46d202a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.211558Z", "completed_at": "2022-11-08T22:17:14.219414Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.219916Z", "completed_at": "2022-11-08T22:17:14.219928Z"}], "thread_id": "Thread-1", "execution_time": 0.009887933731079102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.222412Z", "completed_at": "2022-11-08T22:17:14.238746Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.239263Z", "completed_at": "2022-11-08T22:17:14.239276Z"}], "thread_id": "Thread-1", "execution_time": 0.018415212631225586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.242080Z", "completed_at": "2022-11-08T22:17:14.251580Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.252082Z", "completed_at": "2022-11-08T22:17:14.252094Z"}], "thread_id": "Thread-1", "execution_time": 0.011567831039428711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at.e1c525286c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.254552Z", "completed_at": "2022-11-08T22:17:14.264355Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.264862Z", "completed_at": "2022-11-08T22:17:14.264875Z"}], "thread_id": "Thread-1", "execution_time": 0.011845827102661133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.267345Z", "completed_at": "2022-11-08T22:17:14.283829Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.284366Z", "completed_at": "2022-11-08T22:17:14.284379Z"}], "thread_id": "Thread-1", "execution_time": 0.01859283447265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.287208Z", "completed_at": "2022-11-08T22:17:14.305889Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.306425Z", "completed_at": "2022-11-08T22:17:14.306439Z"}], "thread_id": "Thread-1", "execution_time": 0.02081775665283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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.03cf031d0c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.308969Z", "completed_at": "2022-11-08T22:17:14.318379Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.318875Z", "completed_at": "2022-11-08T22:17:14.318887Z"}], "thread_id": "Thread-1", "execution_time": 0.011439085006713867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.321339Z", "completed_at": "2022-11-08T22:17:14.331099Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.331626Z", "completed_at": "2022-11-08T22:17:14.331640Z"}], "thread_id": "Thread-1", "execution_time": 0.011850833892822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced.1132e1f339"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.334134Z", "completed_at": "2022-11-08T22:17:14.342436Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.342948Z", "completed_at": "2022-11-08T22:17:14.342961Z"}], "thread_id": "Thread-1", "execution_time": 0.010377168655395508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.345479Z", "completed_at": "2022-11-08T22:17:14.356668Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.357183Z", "completed_at": "2022-11-08T22:17:14.357197Z"}], "thread_id": "Thread-1", "execution_time": 0.013278007507324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.359711Z", "completed_at": "2022-11-08T22:17:14.369635Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.370148Z", "completed_at": "2022-11-08T22:17:14.370161Z"}], "thread_id": "Thread-1", "execution_time": 0.012000083923339844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.372644Z", "completed_at": "2022-11-08T22:17:14.380673Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.381178Z", "completed_at": "2022-11-08T22:17:14.381191Z"}], "thread_id": "Thread-1", "execution_time": 0.010090112686157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.383664Z", "completed_at": "2022-11-08T22:17:14.393372Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.393885Z", "completed_at": "2022-11-08T22:17:14.393900Z"}], "thread_id": "Thread-1", "execution_time": 0.011773824691772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id.94e8f4de4b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.396384Z", "completed_at": "2022-11-08T22:17:14.404440Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.404954Z", "completed_at": "2022-11-08T22:17:14.404967Z"}], "thread_id": "Thread-1", "execution_time": 0.010126113891601562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.407454Z", "completed_at": "2022-11-08T22:17:14.419853Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.420379Z", "completed_at": "2022-11-08T22:17:14.420392Z"}], "thread_id": "Thread-1", "execution_time": 0.01449275016784668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.423204Z", "completed_at": "2022-11-08T22:17:14.433019Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.433527Z", "completed_at": "2022-11-08T22:17:14.433540Z"}], "thread_id": "Thread-1", "execution_time": 0.011951208114624023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id.e92ce8a9c0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.436023Z", "completed_at": "2022-11-08T22:17:14.443909Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.444419Z", "completed_at": "2022-11-08T22:17:14.444431Z"}], "thread_id": "Thread-1", "execution_time": 0.009940862655639648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.446913Z", "completed_at": "2022-11-08T22:17:14.456581Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.457090Z", "completed_at": "2022-11-08T22:17:14.457103Z"}], "thread_id": "Thread-1", "execution_time": 0.011742830276489258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.459599Z", "completed_at": "2022-11-08T22:17:14.472820Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.473324Z", "completed_at": "2022-11-08T22:17:14.473336Z"}], "thread_id": "Thread-1", "execution_time": 0.015259981155395508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.476031Z", "completed_at": "2022-11-08T22:17:14.485694Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.486215Z", "completed_at": "2022-11-08T22:17:14.486228Z"}], "thread_id": "Thread-1", "execution_time": 0.011731863021850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced.eff7196b87"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.488732Z", "completed_at": "2022-11-08T22:17:14.496830Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.497355Z", "completed_at": "2022-11-08T22:17:14.497368Z"}], "thread_id": "Thread-1", "execution_time": 0.010209083557128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.499877Z", "completed_at": "2022-11-08T22:17:14.513372Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.513887Z", "completed_at": "2022-11-08T22:17:14.513900Z"}], "thread_id": "Thread-1", "execution_time": 0.015558719635009766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.516597Z", "completed_at": "2022-11-08T22:17:14.526946Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.527463Z", "completed_at": "2022-11-08T22:17:14.527477Z"}], "thread_id": "Thread-1", "execution_time": 0.012424945831298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id.ff47cb8abc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.529978Z", "completed_at": "2022-11-08T22:17:14.538001Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.538505Z", "completed_at": "2022-11-08T22:17:14.538517Z"}], "thread_id": "Thread-1", "execution_time": 0.010090112686157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.540973Z", "completed_at": "2022-11-08T22:17:14.550387Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.550903Z", "completed_at": "2022-11-08T22:17:14.550916Z"}], "thread_id": "Thread-1", "execution_time": 0.0114898681640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.553376Z", "completed_at": "2022-11-08T22:17:14.563736Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.564257Z", "completed_at": "2022-11-08T22:17:14.564270Z"}], "thread_id": "Thread-1", "execution_time": 0.012423992156982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced.d122faa877"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.566735Z", "completed_at": "2022-11-08T22:17:14.574777Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.575277Z", "completed_at": "2022-11-08T22:17:14.575289Z"}], "thread_id": "Thread-1", "execution_time": 0.010084152221679688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.577761Z", "completed_at": "2022-11-08T22:17:14.592688Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.593213Z", "completed_at": "2022-11-08T22:17:14.593227Z"}], "thread_id": "Thread-1", "execution_time": 0.017023086547851562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.595988Z", "completed_at": "2022-11-08T22:17:14.609086Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.609597Z", "completed_at": "2022-11-08T22:17:14.609611Z"}], "thread_id": "Thread-1", "execution_time": 0.01516103744506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__ad_group_id__campaign_id__advertiser_id.3ac101cc13"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.612113Z", "completed_at": "2022-11-08T22:17:14.620343Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.620850Z", "completed_at": "2022-11-08T22:17:14.620862Z"}], "thread_id": "Thread-1", "execution_time": 0.010290861129760742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.623329Z", "completed_at": "2022-11-08T22:17:14.631376Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.631897Z", "completed_at": "2022-11-08T22:17:14.631910Z"}], "thread_id": "Thread-1", "execution_time": 0.010147809982299805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.634386Z", "completed_at": "2022-11-08T22:17:14.644042Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.644562Z", "completed_at": "2022-11-08T22:17:14.644575Z"}], "thread_id": "Thread-1", "execution_time": 0.011739969253540039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id.8e9ab31ea9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.647044Z", "completed_at": "2022-11-08T22:17:14.657155Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.657676Z", "completed_at": "2022-11-08T22:17:14.657689Z"}], "thread_id": "Thread-1", "execution_time": 0.012182950973510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.660171Z", "completed_at": "2022-11-08T22:17:14.674945Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.675463Z", "completed_at": "2022-11-08T22:17:14.675477Z"}], "thread_id": "Thread-1", "execution_time": 0.01684403419494629, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.678223Z", "completed_at": "2022-11-08T22:17:14.693316Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.693839Z", "completed_at": "2022-11-08T22:17:14.693853Z"}], "thread_id": "Thread-1", "execution_time": 0.017185211181640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.696662Z", "completed_at": "2022-11-08T22:17:14.709972Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.710494Z", "completed_at": "2022-11-08T22:17:14.710507Z"}], "thread_id": "Thread-1", "execution_time": 0.015399932861328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.712958Z", "completed_at": "2022-11-08T22:17:14.720811Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.721308Z", "completed_at": "2022-11-08T22:17:14.721320Z"}], "thread_id": "Thread-1", "execution_time": 0.009877920150756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.723756Z", "completed_at": "2022-11-08T22:17:14.732209Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.732730Z", "completed_at": "2022-11-08T22:17:14.732744Z"}], "thread_id": "Thread-1", "execution_time": 0.010555028915405273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.735220Z", "completed_at": "2022-11-08T22:17:14.745124Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.745644Z", "completed_at": "2022-11-08T22:17:14.745657Z"}], "thread_id": "Thread-1", "execution_time": 0.011992692947387695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced.cd4fd6b0be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.749783Z", "completed_at": "2022-11-08T22:17:14.757695Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.758216Z", "completed_at": "2022-11-08T22:17:14.758230Z"}], "thread_id": "Thread-1", "execution_time": 0.011657953262329102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.760706Z", "completed_at": "2022-11-08T22:17:14.768971Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.769518Z", "completed_at": "2022-11-08T22:17:14.769532Z"}], "thread_id": "Thread-1", "execution_time": 0.010384082794189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.772098Z", "completed_at": "2022-11-08T22:17:14.781967Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.782532Z", "completed_at": "2022-11-08T22:17:14.782547Z"}], "thread_id": "Thread-1", "execution_time": 0.012322187423706055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced.f84924f13b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.785127Z", "completed_at": "2022-11-08T22:17:14.795094Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.795616Z", "completed_at": "2022-11-08T22:17:14.795630Z"}], "thread_id": "Thread-1", "execution_time": 0.012063026428222656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.798099Z", "completed_at": "2022-11-08T22:17:14.806093Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.806606Z", "completed_at": "2022-11-08T22:17:14.806619Z"}], "thread_id": "Thread-1", "execution_time": 0.010068893432617188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.809150Z", "completed_at": "2022-11-08T22:17:14.818787Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.819300Z", "completed_at": "2022-11-08T22:17:14.819312Z"}], "thread_id": "Thread-1", "execution_time": 0.011716127395629883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour.1a4ef6182a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.821798Z", "completed_at": "2022-11-08T22:17:14.829767Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.830260Z", "completed_at": "2022-11-08T22:17:14.830273Z"}], "thread_id": "Thread-1", "execution_time": 0.010006189346313477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.832726Z", "completed_at": "2022-11-08T22:17:14.842631Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.843160Z", "completed_at": "2022-11-08T22:17:14.843173Z"}], "thread_id": "Thread-1", "execution_time": 0.012012243270874023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.845634Z", "completed_at": "2022-11-08T22:17:14.854930Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.855429Z", "completed_at": "2022-11-08T22:17:14.855441Z"}], "thread_id": "Thread-1", "execution_time": 0.011313915252685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced.200b225a27"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.857867Z", "completed_at": "2022-11-08T22:17:14.865825Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.866340Z", "completed_at": "2022-11-08T22:17:14.866354Z"}], "thread_id": "Thread-1", "execution_time": 0.010039091110229492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.868804Z", "completed_at": "2022-11-08T22:17:14.876898Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.877401Z", "completed_at": "2022-11-08T22:17:14.877414Z"}], "thread_id": "Thread-1", "execution_time": 0.010138988494873047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.879875Z", "completed_at": "2022-11-08T22:17:14.891051Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.891567Z", "completed_at": "2022-11-08T22:17:14.891580Z"}], "thread_id": "Thread-1", "execution_time": 0.013241767883300781, "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_ad_squad_id__date_hour.774a407e69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.894044Z", "completed_at": "2022-11-08T22:17:14.902080Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.902590Z", "completed_at": "2022-11-08T22:17:14.902603Z"}], "thread_id": "Thread-1", "execution_time": 0.010107994079589844, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.905102Z", "completed_at": "2022-11-08T22:17:14.913223Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:14.913744Z", "completed_at": "2022-11-08T22:17:14.913757Z"}], "thread_id": "Thread-1", "execution_time": 0.010211944580078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:14.916247Z", "completed_at": "2022-11-08T22:17:15.029705Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.030244Z", "completed_at": "2022-11-08T22:17:15.030258Z"}], "thread_id": "Thread-1", "execution_time": 0.1155557632446289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.032977Z", "completed_at": "2022-11-08T22:17:15.046057Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.046549Z", "completed_at": "2022-11-08T22:17:15.046560Z"}], "thread_id": "Thread-1", "execution_time": 0.015126943588256836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.049198Z", "completed_at": "2022-11-08T22:17:15.058570Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.059077Z", "completed_at": "2022-11-08T22:17:15.059089Z"}], "thread_id": "Thread-1", "execution_time": 0.011425018310546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced.31b9fb6777"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.061527Z", "completed_at": "2022-11-08T22:17:15.069471Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.069993Z", "completed_at": "2022-11-08T22:17:15.070005Z"}], "thread_id": "Thread-1", "execution_time": 0.01005101203918457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.072544Z", "completed_at": "2022-11-08T22:17:15.082581Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.083106Z", "completed_at": "2022-11-08T22:17:15.083120Z"}], "thread_id": "Thread-1", "execution_time": 0.012169837951660156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.085638Z", "completed_at": "2022-11-08T22:17:15.097645Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.098169Z", "completed_at": "2022-11-08T22:17:15.098182Z"}], "thread_id": "Thread-1", "execution_time": 0.01410984992980957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.100857Z", "completed_at": "2022-11-08T22:17:15.110407Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.110911Z", "completed_at": "2022-11-08T22:17:15.110924Z"}], "thread_id": "Thread-1", "execution_time": 0.011593103408813477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour.64293afa9c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.113353Z", "completed_at": "2022-11-08T22:17:15.123166Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.123677Z", "completed_at": "2022-11-08T22:17:15.123690Z"}], "thread_id": "Thread-1", "execution_time": 0.01188206672668457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.126146Z", "completed_at": "2022-11-08T22:17:15.134094Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.134618Z", "completed_at": "2022-11-08T22:17:15.134631Z"}], "thread_id": "Thread-1", "execution_time": 0.010051727294921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.137104Z", "completed_at": "2022-11-08T22:17:15.146673Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.147198Z", "completed_at": "2022-11-08T22:17:15.147213Z"}], "thread_id": "Thread-1", "execution_time": 0.011669158935546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced.c6f6c78b99"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.149691Z", "completed_at": "2022-11-08T22:17:15.157971Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.158483Z", "completed_at": "2022-11-08T22:17:15.158497Z"}], "thread_id": "Thread-1", "execution_time": 0.010349750518798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.160976Z", "completed_at": "2022-11-08T22:17:15.171117Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.171638Z", "completed_at": "2022-11-08T22:17:15.171652Z"}], "thread_id": "Thread-1", "execution_time": 0.012238025665283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.198088Z", "completed_at": "2022-11-08T22:17:15.208706Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.209206Z", "completed_at": "2022-11-08T22:17:15.209219Z"}], "thread_id": "Thread-1", "execution_time": 0.012694597244262695, "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_creative_id__param_key__updated_at.cc3fa6acbe"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.211661Z", "completed_at": "2022-11-08T22:17:15.221162Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.221667Z", "completed_at": "2022-11-08T22:17:15.221680Z"}], "thread_id": "Thread-1", "execution_time": 0.011552095413208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.224159Z", "completed_at": "2022-11-08T22:17:15.234211Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.234737Z", "completed_at": "2022-11-08T22:17:15.234750Z"}], "thread_id": "Thread-1", "execution_time": 0.012160778045654297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at.cec78c01de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.237244Z", "completed_at": "2022-11-08T22:17:15.245122Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.245619Z", "completed_at": "2022-11-08T22:17:15.245631Z"}], "thread_id": "Thread-1", "execution_time": 0.009927988052368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.248041Z", "completed_at": "2022-11-08T22:17:15.258004Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.258525Z", "completed_at": "2022-11-08T22:17:15.258539Z"}], "thread_id": "Thread-1", "execution_time": 0.012039899826049805, "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_ad_group_id__stat_time_hour.1aeaeb71ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.261067Z", "completed_at": "2022-11-08T22:17:15.270977Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.271490Z", "completed_at": "2022-11-08T22:17:15.271504Z"}], "thread_id": "Thread-1", "execution_time": 0.011970043182373047, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.273966Z", "completed_at": "2022-11-08T22:17:15.281993Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.282502Z", "completed_at": "2022-11-08T22:17:15.282515Z"}], "thread_id": "Thread-1", "execution_time": 0.010098934173583984, "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"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.284964Z", "completed_at": "2022-11-08T22:17:15.294622Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.295147Z", "completed_at": "2022-11-08T22:17:15.295161Z"}], "thread_id": "Thread-1", "execution_time": 0.011740922927856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at.66b86b4dd1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.297635Z", "completed_at": "2022-11-08T22:17:15.305930Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.306437Z", "completed_at": "2022-11-08T22:17:15.306449Z"}], "thread_id": "Thread-1", "execution_time": 0.010358095169067383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.308891Z", "completed_at": "2022-11-08T22:17:15.320291Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.320802Z", "completed_at": "2022-11-08T22:17:15.320816Z"}], "thread_id": "Thread-1", "execution_time": 0.013447999954223633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour.e70f8cef6d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.323281Z", "completed_at": "2022-11-08T22:17:15.331317Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.331820Z", "completed_at": "2022-11-08T22:17:15.331832Z"}], "thread_id": "Thread-1", "execution_time": 0.010098934173583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.334262Z", "completed_at": "2022-11-08T22:17:15.342350Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.342874Z", "completed_at": "2022-11-08T22:17:15.342888Z"}], "thread_id": "Thread-1", "execution_time": 0.010193824768066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.345647Z", "completed_at": "2022-11-08T22:17:15.359306Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.359821Z", "completed_at": "2022-11-08T22:17:15.359835Z"}], "thread_id": "Thread-1", "execution_time": 0.01601386070251465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.362535Z", "completed_at": "2022-11-08T22:17:15.370487Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.370985Z", "completed_at": "2022-11-08T22:17:15.370997Z"}], "thread_id": "Thread-1", "execution_time": 0.009974956512451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.373422Z", "completed_at": "2022-11-08T22:17:15.384902Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.385429Z", "completed_at": "2022-11-08T22:17:15.385443Z"}], "thread_id": "Thread-1", "execution_time": 0.013586997985839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.387915Z", "completed_at": "2022-11-08T22:17:15.401736Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.402250Z", "completed_at": "2022-11-08T22:17:15.402263Z"}], "thread_id": "Thread-1", "execution_time": 0.0158998966217041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.405020Z", "completed_at": "2022-11-08T22:17:15.422086Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.422594Z", "completed_at": "2022-11-08T22:17:15.422607Z"}], "thread_id": "Thread-1", "execution_time": 0.019155263900756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.425396Z", "completed_at": "2022-11-08T22:17:15.441002Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.441526Z", "completed_at": "2022-11-08T22:17:15.441540Z"}], "thread_id": "Thread-1", "execution_time": 0.017904996871948242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.444361Z", "completed_at": "2022-11-08T22:17:15.453921Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.454420Z", "completed_at": "2022-11-08T22:17:15.454432Z"}], "thread_id": "Thread-1", "execution_time": 0.011615991592407227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at.72bf07011b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.456814Z", "completed_at": "2022-11-08T22:17:15.466194Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.466691Z", "completed_at": "2022-11-08T22:17:15.466703Z"}], "thread_id": "Thread-1", "execution_time": 0.01139688491821289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.469094Z", "completed_at": "2022-11-08T22:17:15.481228Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.481738Z", "completed_at": "2022-11-08T22:17:15.481751Z"}], "thread_id": "Thread-1", "execution_time": 0.014191150665283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.484469Z", "completed_at": "2022-11-08T22:17:15.494077Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.494580Z", "completed_at": "2022-11-08T22:17:15.494593Z"}], "thread_id": "Thread-1", "execution_time": 0.011661767959594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour.8e4a1e4b34"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.497292Z", "completed_at": "2022-11-08T22:17:15.506835Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.507338Z", "completed_at": "2022-11-08T22:17:15.507351Z"}], "thread_id": "Thread-1", "execution_time": 0.011859893798828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.509787Z", "completed_at": "2022-11-08T22:17:15.517940Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.518459Z", "completed_at": "2022-11-08T22:17:15.518471Z"}], "thread_id": "Thread-1", "execution_time": 0.01024007797241211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.520941Z", "completed_at": "2022-11-08T22:17:15.530760Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.531288Z", "completed_at": "2022-11-08T22:17:15.531302Z"}], "thread_id": "Thread-1", "execution_time": 0.011928081512451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp.2725b1ff40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.533758Z", "completed_at": "2022-11-08T22:17:15.542051Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.542555Z", "completed_at": "2022-11-08T22:17:15.542568Z"}], "thread_id": "Thread-1", "execution_time": 0.010347127914428711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.545010Z", "completed_at": "2022-11-08T22:17:15.557105Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.557638Z", "completed_at": "2022-11-08T22:17:15.557652Z"}], "thread_id": "Thread-1", "execution_time": 0.014215946197509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp.c7054e5b55"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.560169Z", "completed_at": "2022-11-08T22:17:15.568392Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.568911Z", "completed_at": "2022-11-08T22:17:15.568924Z"}], "thread_id": "Thread-1", "execution_time": 0.010328054428100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.571386Z", "completed_at": "2022-11-08T22:17:15.584031Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.584558Z", "completed_at": "2022-11-08T22:17:15.584572Z"}], "thread_id": "Thread-1", "execution_time": 0.014764070510864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.587409Z", "completed_at": "2022-11-08T22:17:15.598012Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.598546Z", "completed_at": "2022-11-08T22:17:15.598560Z"}], "thread_id": "Thread-1", "execution_time": 0.012727022171020508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement.71102d8fdb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.601046Z", "completed_at": "2022-11-08T22:17:15.611611Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.612129Z", "completed_at": "2022-11-08T22:17:15.612142Z"}], "thread_id": "Thread-1", "execution_time": 0.012660980224609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.614635Z", "completed_at": "2022-11-08T22:17:15.623062Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.623619Z", "completed_at": "2022-11-08T22:17:15.623634Z"}], "thread_id": "Thread-1", "execution_time": 0.010615110397338867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.626207Z", "completed_at": "2022-11-08T22:17:15.634567Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.635102Z", "completed_at": "2022-11-08T22:17:15.635115Z"}], "thread_id": "Thread-1", "execution_time": 0.010524749755859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.637593Z", "completed_at": "2022-11-08T22:17:15.649387Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.649959Z", "completed_at": "2022-11-08T22:17:15.649973Z"}], "thread_id": "Thread-1", "execution_time": 0.013961076736450195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp.b12672e022"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.652452Z", "completed_at": "2022-11-08T22:17:15.660972Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.661494Z", "completed_at": "2022-11-08T22:17:15.661507Z"}], "thread_id": "Thread-1", "execution_time": 0.010611295700073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.663997Z", "completed_at": "2022-11-08T22:17:15.678957Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.679489Z", "completed_at": "2022-11-08T22:17:15.679504Z"}], "thread_id": "Thread-1", "execution_time": 0.01706981658935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.682451Z", "completed_at": "2022-11-08T22:17:15.692901Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.693405Z", "completed_at": "2022-11-08T22:17:15.693418Z"}], "thread_id": "Thread-1", "execution_time": 0.01260685920715332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement.251e077e6b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.695863Z", "completed_at": "2022-11-08T22:17:15.705998Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.706522Z", "completed_at": "2022-11-08T22:17:15.706534Z"}], "thread_id": "Thread-1", "execution_time": 0.012226104736328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.708977Z", "completed_at": "2022-11-08T22:17:15.717198Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.717707Z", "completed_at": "2022-11-08T22:17:15.717720Z"}], "thread_id": "Thread-1", "execution_time": 0.010281801223754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.720148Z", "completed_at": "2022-11-08T22:17:15.728290Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.728815Z", "completed_at": "2022-11-08T22:17:15.728828Z"}], "thread_id": "Thread-1", "execution_time": 0.01024627685546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.731290Z", "completed_at": "2022-11-08T22:17:15.742581Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.743085Z", "completed_at": "2022-11-08T22:17:15.743098Z"}], "thread_id": "Thread-1", "execution_time": 0.013345003128051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp.dddc4a21ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.745509Z", "completed_at": "2022-11-08T22:17:15.753819Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.754328Z", "completed_at": "2022-11-08T22:17:15.754340Z"}], "thread_id": "Thread-1", "execution_time": 0.01037287712097168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.756741Z", "completed_at": "2022-11-08T22:17:15.768210Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.768726Z", "completed_at": "2022-11-08T22:17:15.768739Z"}], "thread_id": "Thread-1", "execution_time": 0.013546943664550781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.771522Z", "completed_at": "2022-11-08T22:17:15.781859Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.782378Z", "completed_at": "2022-11-08T22:17:15.782391Z"}], "thread_id": "Thread-1", "execution_time": 0.012655258178710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement.7028206273"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.785063Z", "completed_at": "2022-11-08T22:17:15.795002Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.795525Z", "completed_at": "2022-11-08T22:17:15.795538Z"}], "thread_id": "Thread-1", "execution_time": 0.01202392578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.797980Z", "completed_at": "2022-11-08T22:17:15.806024Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.806531Z", "completed_at": "2022-11-08T22:17:15.806543Z"}], "thread_id": "Thread-1", "execution_time": 0.010089874267578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.808942Z", "completed_at": "2022-11-08T22:17:15.817315Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.817826Z", "completed_at": "2022-11-08T22:17:15.817839Z"}], "thread_id": "Thread-1", "execution_time": 0.01044011116027832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.820279Z", "completed_at": "2022-11-08T22:17:15.838443Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.838970Z", "completed_at": "2022-11-08T22:17:15.838984Z"}], "thread_id": "Thread-1", "execution_time": 0.02032613754272461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.841807Z", "completed_at": "2022-11-08T22:17:15.849861Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.850370Z", "completed_at": "2022-11-08T22:17:15.850382Z"}], "thread_id": "Thread-1", "execution_time": 0.010141849517822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.852780Z", "completed_at": "2022-11-08T22:17:15.860826Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.861346Z", "completed_at": "2022-11-08T22:17:15.861359Z"}], "thread_id": "Thread-1", "execution_time": 0.010130882263183594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.863796Z", "completed_at": "2022-11-08T22:17:15.881539Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.882052Z", "completed_at": "2022-11-08T22:17:15.882065Z"}], "thread_id": "Thread-1", "execution_time": 0.019794225692749023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.884769Z", "completed_at": "2022-11-08T22:17:15.895756Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.896249Z", "completed_at": "2022-11-08T22:17:15.896261Z"}], "thread_id": "Thread-1", "execution_time": 0.012996912002563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id.eab5b85d74"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.898658Z", "completed_at": "2022-11-08T22:17:15.906724Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.907242Z", "completed_at": "2022-11-08T22:17:15.907255Z"}], "thread_id": "Thread-1", "execution_time": 0.010154247283935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.909685Z", "completed_at": "2022-11-08T22:17:15.917880Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.918382Z", "completed_at": "2022-11-08T22:17:15.918395Z"}], "thread_id": "Thread-1", "execution_time": 0.010239124298095703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.920795Z", "completed_at": "2022-11-08T22:17:15.933550Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.934078Z", "completed_at": "2022-11-08T22:17:15.934092Z"}], "thread_id": "Thread-1", "execution_time": 0.014843940734863281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day.19d180bab9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.936532Z", "completed_at": "2022-11-08T22:17:15.944495Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.944996Z", "completed_at": "2022-11-08T22:17:15.945007Z"}], "thread_id": "Thread-1", "execution_time": 0.009989023208618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.947426Z", "completed_at": "2022-11-08T22:17:15.955588Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.956106Z", "completed_at": "2022-11-08T22:17:15.956119Z"}], "thread_id": "Thread-1", "execution_time": 0.010264873504638672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.958557Z", "completed_at": "2022-11-08T22:17:15.970431Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.970952Z", "completed_at": "2022-11-08T22:17:15.970966Z"}], "thread_id": "Thread-1", "execution_time": 0.013951778411865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.973404Z", "completed_at": "2022-11-08T22:17:15.983097Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.983612Z", "completed_at": "2022-11-08T22:17:15.983624Z"}], "thread_id": "Thread-1", "execution_time": 0.011767148971557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.986035Z", "completed_at": "2022-11-08T22:17:15.994057Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:15.994567Z", "completed_at": "2022-11-08T22:17:15.994580Z"}], "thread_id": "Thread-1", "execution_time": 0.01015019416809082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:15.997110Z", "completed_at": "2022-11-08T22:17:16.007553Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.008057Z", "completed_at": "2022-11-08T22:17:16.008070Z"}], "thread_id": "Thread-1", "execution_time": 0.012492179870605469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day.647e56213f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.010473Z", "completed_at": "2022-11-08T22:17:16.018564Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.019082Z", "completed_at": "2022-11-08T22:17:16.019095Z"}], "thread_id": "Thread-1", "execution_time": 0.010174036026000977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.021513Z", "completed_at": "2022-11-08T22:17:16.031204Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.031715Z", "completed_at": "2022-11-08T22:17:16.031728Z"}], "thread_id": "Thread-1", "execution_time": 0.011757850646972656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.034135Z", "completed_at": "2022-11-08T22:17:16.046003Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.046510Z", "completed_at": "2022-11-08T22:17:16.046523Z"}], "thread_id": "Thread-1", "execution_time": 0.013917207717895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.048936Z", "completed_at": "2022-11-08T22:17:16.056783Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.057283Z", "completed_at": "2022-11-08T22:17:16.057295Z"}], "thread_id": "Thread-1", "execution_time": 0.009878873825073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.059675Z", "completed_at": "2022-11-08T22:17:16.069125Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.069644Z", "completed_at": "2022-11-08T22:17:16.069658Z"}], "thread_id": "Thread-1", "execution_time": 0.011507987976074219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.072074Z", "completed_at": "2022-11-08T22:17:16.081729Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.082252Z", "completed_at": "2022-11-08T22:17:16.082265Z"}], "thread_id": "Thread-1", "execution_time": 0.011741876602172852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day.8bc84fccc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.084675Z", "completed_at": "2022-11-08T22:17:16.092820Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.093327Z", "completed_at": "2022-11-08T22:17:16.093339Z"}], "thread_id": "Thread-1", "execution_time": 0.010193109512329102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.095754Z", "completed_at": "2022-11-08T22:17:16.103820Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.104336Z", "completed_at": "2022-11-08T22:17:16.104349Z"}], "thread_id": "Thread-1", "execution_time": 0.010154008865356445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.106771Z", "completed_at": "2022-11-08T22:17:16.117922Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.118438Z", "completed_at": "2022-11-08T22:17:16.118451Z"}], "thread_id": "Thread-1", "execution_time": 0.01322174072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day.e60fe79ec4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.120878Z", "completed_at": "2022-11-08T22:17:16.128986Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.129515Z", "completed_at": "2022-11-08T22:17:16.129529Z"}], "thread_id": "Thread-1", "execution_time": 0.01021885871887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.131958Z", "completed_at": "2022-11-08T22:17:16.140008Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.140501Z", "completed_at": "2022-11-08T22:17:16.140513Z"}], "thread_id": "Thread-1", "execution_time": 0.010070085525512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.142856Z", "completed_at": "2022-11-08T22:17:16.152489Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.153033Z", "completed_at": "2022-11-08T22:17:16.153047Z"}], "thread_id": "Thread-1", "execution_time": 0.011747121810913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id.5a94423e40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.155428Z", "completed_at": "2022-11-08T22:17:16.164993Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.165505Z", "completed_at": "2022-11-08T22:17:16.165518Z"}], "thread_id": "Thread-1", "execution_time": 0.011621236801147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.167965Z", "completed_at": "2022-11-08T22:17:16.180212Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.180738Z", "completed_at": "2022-11-08T22:17:16.180752Z"}], "thread_id": "Thread-1", "execution_time": 0.014363288879394531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id.0a25b64738"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.183182Z", "completed_at": "2022-11-08T22:17:16.191082Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.191581Z", "completed_at": "2022-11-08T22:17:16.191594Z"}], "thread_id": "Thread-1", "execution_time": 0.00993800163269043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.193991Z", "completed_at": "2022-11-08T22:17:16.206424Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.206928Z", "completed_at": "2022-11-08T22:17:16.206941Z"}], "thread_id": "Thread-1", "execution_time": 0.01448512077331543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id.3dd4da872f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.209337Z", "completed_at": "2022-11-08T22:17:16.217386Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.217883Z", "completed_at": "2022-11-08T22:17:16.217895Z"}], "thread_id": "Thread-1", "execution_time": 0.010083913803100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.220291Z", "completed_at": "2022-11-08T22:17:16.230572Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.231087Z", "completed_at": "2022-11-08T22:17:16.231100Z"}], "thread_id": "Thread-1", "execution_time": 0.012348175048828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id.7cd75107e6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.233493Z", "completed_at": "2022-11-08T22:17:16.241379Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.241868Z", "completed_at": "2022-11-08T22:17:16.241879Z"}], "thread_id": "Thread-1", "execution_time": 0.009893178939819336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.244217Z", "completed_at": "2022-11-08T22:17:16.266768Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.267295Z", "completed_at": "2022-11-08T22:17:16.267309Z"}], "thread_id": "Thread-1", "execution_time": 0.024634838104248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.int_facebook_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.269899Z", "completed_at": "2022-11-08T22:17:16.280005Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.280501Z", "completed_at": "2022-11-08T22:17:16.280513Z"}], "thread_id": "Thread-1", "execution_time": 0.012147903442382812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type.ba044777d3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.282881Z", "completed_at": "2022-11-08T22:17:16.290816Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.291334Z", "completed_at": "2022-11-08T22:17:16.291347Z"}], "thread_id": "Thread-1", "execution_time": 0.010020017623901367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.293746Z", "completed_at": "2022-11-08T22:17:16.304726Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.305248Z", "completed_at": "2022-11-08T22:17:16.305260Z"}], "thread_id": "Thread-1", "execution_time": 0.013051986694335938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day.c52089771e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.307657Z", "completed_at": "2022-11-08T22:17:16.315806Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.316315Z", "completed_at": "2022-11-08T22:17:16.316328Z"}], "thread_id": "Thread-1", "execution_time": 0.010213136672973633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.318739Z", "completed_at": "2022-11-08T22:17:16.328454Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.328974Z", "completed_at": "2022-11-08T22:17:16.328988Z"}], "thread_id": "Thread-1", "execution_time": 0.011790752410888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day.7c8e1c1a2f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.331414Z", "completed_at": "2022-11-08T22:17:16.339595Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.340117Z", "completed_at": "2022-11-08T22:17:16.340129Z"}], "thread_id": "Thread-1", "execution_time": 0.01028299331665039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.342533Z", "completed_at": "2022-11-08T22:17:16.451755Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.452268Z", "completed_at": "2022-11-08T22:17:16.452282Z"}], "thread_id": "Thread-1", "execution_time": 0.11129117012023926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day.fe37ea1a7b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.454687Z", "completed_at": "2022-11-08T22:17:16.462348Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.462853Z", "completed_at": "2022-11-08T22:17:16.462864Z"}], "thread_id": "Thread-1", "execution_time": 0.009681940078735352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.465236Z", "completed_at": "2022-11-08T22:17:16.475577Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.476097Z", "completed_at": "2022-11-08T22:17:16.476111Z"}], "thread_id": "Thread-1", "execution_time": 0.012434005737304688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day.a59b8e007f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.478664Z", "completed_at": "2022-11-08T22:17:16.486765Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.487275Z", "completed_at": "2022-11-08T22:17:16.487287Z"}], "thread_id": "Thread-1", "execution_time": 0.010197877883911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.489680Z", "completed_at": "2022-11-08T22:17:16.502304Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.502822Z", "completed_at": "2022-11-08T22:17:16.502835Z"}], "thread_id": "Thread-1", "execution_time": 0.014702081680297852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.f735cda469"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.505266Z", "completed_at": "2022-11-08T22:17:16.513263Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.513768Z", "completed_at": "2022-11-08T22:17:16.513780Z"}], "thread_id": "Thread-1", "execution_time": 0.01005411148071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.516181Z", "completed_at": "2022-11-08T22:17:16.526655Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.527179Z", "completed_at": "2022-11-08T22:17:16.527192Z"}], "thread_id": "Thread-1", "execution_time": 0.012568950653076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day.214ff3497d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.529597Z", "completed_at": "2022-11-08T22:17:16.539121Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.539630Z", "completed_at": "2022-11-08T22:17:16.539642Z"}], "thread_id": "Thread-1", "execution_time": 0.011580944061279297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.542019Z", "completed_at": "2022-11-08T22:17:16.551678Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.552194Z", "completed_at": "2022-11-08T22:17:16.552207Z"}], "thread_id": "Thread-1", "execution_time": 0.011716127395629883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id.a2dcede91c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.554602Z", "completed_at": "2022-11-08T22:17:16.563090Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.563616Z", "completed_at": "2022-11-08T22:17:16.563629Z"}], "thread_id": "Thread-1", "execution_time": 0.010612010955810547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.566063Z", "completed_at": "2022-11-08T22:17:16.574203Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.574740Z", "completed_at": "2022-11-08T22:17:16.574753Z"}], "thread_id": "Thread-1", "execution_time": 0.010263919830322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.577231Z", "completed_at": "2022-11-08T22:17:16.589523Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.590036Z", "completed_at": "2022-11-08T22:17:16.590049Z"}], "thread_id": "Thread-1", "execution_time": 0.014389991760253906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id.f60989a7a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.592456Z", "completed_at": "2022-11-08T22:17:16.600356Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.600875Z", "completed_at": "2022-11-08T22:17:16.600888Z"}], "thread_id": "Thread-1", "execution_time": 0.009982824325561523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.603250Z", "completed_at": "2022-11-08T22:17:16.611534Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.612042Z", "completed_at": "2022-11-08T22:17:16.612056Z"}], "thread_id": "Thread-1", "execution_time": 0.010361194610595703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.614516Z", "completed_at": "2022-11-08T22:17:16.625413Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.625919Z", "completed_at": "2022-11-08T22:17:16.625931Z"}], "thread_id": "Thread-1", "execution_time": 0.012967824935913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.628324Z", "completed_at": "2022-11-08T22:17:16.638263Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.638791Z", "completed_at": "2022-11-08T22:17:16.638805Z"}], "thread_id": "Thread-1", "execution_time": 0.012033939361572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.641233Z", "completed_at": "2022-11-08T22:17:16.649473Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.649993Z", "completed_at": "2022-11-08T22:17:16.650005Z"}], "thread_id": "Thread-1", "execution_time": 0.010328292846679688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.652404Z", "completed_at": "2022-11-08T22:17:16.664187Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.664699Z", "completed_at": "2022-11-08T22:17:16.664712Z"}], "thread_id": "Thread-1", "execution_time": 0.013843774795532227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.5c000e925f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.667109Z", "completed_at": "2022-11-08T22:17:16.676831Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.677341Z", "completed_at": "2022-11-08T22:17:16.677354Z"}], "thread_id": "Thread-1", "execution_time": 0.011783838272094727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.679741Z", "completed_at": "2022-11-08T22:17:16.688147Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.688655Z", "completed_at": "2022-11-08T22:17:16.688669Z"}], "thread_id": "Thread-1", "execution_time": 0.010474920272827148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.691089Z", "completed_at": "2022-11-08T22:17:16.702956Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.703493Z", "completed_at": "2022-11-08T22:17:16.703507Z"}], "thread_id": "Thread-1", "execution_time": 0.013978958129882812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id.d00d4a104d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.705943Z", "completed_at": "2022-11-08T22:17:16.714176Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.714686Z", "completed_at": "2022-11-08T22:17:16.714699Z"}], "thread_id": "Thread-1", "execution_time": 0.010319948196411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.717117Z", "completed_at": "2022-11-08T22:17:16.727396Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.727913Z", "completed_at": "2022-11-08T22:17:16.727926Z"}], "thread_id": "Thread-1", "execution_time": 0.012369871139526367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.730350Z", "completed_at": "2022-11-08T22:17:16.742806Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.743320Z", "completed_at": "2022-11-08T22:17:16.743334Z"}], "thread_id": "Thread-1", "execution_time": 0.01452779769897461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code.2d5faac68f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.745737Z", "completed_at": "2022-11-08T22:17:16.753799Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.754311Z", "completed_at": "2022-11-08T22:17:16.754323Z"}], "thread_id": "Thread-1", "execution_time": 0.010210037231445312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.756811Z", "completed_at": "2022-11-08T22:17:16.772565Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.773082Z", "completed_at": "2022-11-08T22:17:16.773095Z"}], "thread_id": "Thread-1", "execution_time": 0.01783013343811035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.87353ef6b3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.775503Z", "completed_at": "2022-11-08T22:17:16.783483Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.783982Z", "completed_at": "2022-11-08T22:17:16.783994Z"}], "thread_id": "Thread-1", "execution_time": 0.010025978088378906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.786352Z", "completed_at": "2022-11-08T22:17:16.801812Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.802331Z", "completed_at": "2022-11-08T22:17:16.802345Z"}], "thread_id": "Thread-1", "execution_time": 0.017535924911499023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.4b91f31686"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.804758Z", "completed_at": "2022-11-08T22:17:16.812687Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.813183Z", "completed_at": "2022-11-08T22:17:16.813195Z"}], "thread_id": "Thread-1", "execution_time": 0.009966850280761719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.815567Z", "completed_at": "2022-11-08T22:17:16.831051Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.831569Z", "completed_at": "2022-11-08T22:17:16.831582Z"}], "thread_id": "Thread-1", "execution_time": 0.017568111419677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code.d7e35aaa9b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.833988Z", "completed_at": "2022-11-08T22:17:16.841886Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.842411Z", "completed_at": "2022-11-08T22:17:16.842423Z"}], "thread_id": "Thread-1", "execution_time": 0.009974002838134766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.844779Z", "completed_at": "2022-11-08T22:17:16.859787Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.860314Z", "completed_at": "2022-11-08T22:17:16.860328Z"}], "thread_id": "Thread-1", "execution_time": 0.01708531379699707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.070da99eb7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.862748Z", "completed_at": "2022-11-08T22:17:16.872256Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.872770Z", "completed_at": "2022-11-08T22:17:16.872782Z"}], "thread_id": "Thread-1", "execution_time": 0.011571168899536133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.875143Z", "completed_at": "2022-11-08T22:17:16.890469Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.890992Z", "completed_at": "2022-11-08T22:17:16.891005Z"}], "thread_id": "Thread-1", "execution_time": 0.017409086227416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.9ddafdcbe9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.893386Z", "completed_at": "2022-11-08T22:17:16.901483Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.901985Z", "completed_at": "2022-11-08T22:17:16.901998Z"}], "thread_id": "Thread-1", "execution_time": 0.010149717330932617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.928538Z", "completed_at": "2022-11-08T22:17:16.945884Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.946393Z", "completed_at": "2022-11-08T22:17:16.946406Z"}], "thread_id": "Thread-1", "execution_time": 0.019614219665527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network.99029c3602"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.948808Z", "completed_at": "2022-11-08T22:17:16.956735Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.957244Z", "completed_at": "2022-11-08T22:17:16.957257Z"}], "thread_id": "Thread-1", "execution_time": 0.009987831115722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.959633Z", "completed_at": "2022-11-08T22:17:16.969310Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.969821Z", "completed_at": "2022-11-08T22:17:16.969834Z"}], "thread_id": "Thread-1", "execution_time": 0.011736869812011719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day.990badbc11"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.972220Z", "completed_at": "2022-11-08T22:17:16.982034Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.982548Z", "completed_at": "2022-11-08T22:17:16.982561Z"}], "thread_id": "Thread-1", "execution_time": 0.011894941329956055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.984915Z", "completed_at": "2022-11-08T22:17:16.993204Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:16.993718Z", "completed_at": "2022-11-08T22:17:16.993731Z"}], "thread_id": "Thread-1", "execution_time": 0.010340690612792969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:16.996122Z", "completed_at": "2022-11-08T22:17:17.007102Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.007609Z", "completed_at": "2022-11-08T22:17:17.007623Z"}], "thread_id": "Thread-1", "execution_time": 0.013039827346801758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day.d207b7d69d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.010012Z", "completed_at": "2022-11-08T22:17:17.018069Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.018586Z", "completed_at": "2022-11-08T22:17:17.018599Z"}], "thread_id": "Thread-1", "execution_time": 0.010132074356079102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.021003Z", "completed_at": "2022-11-08T22:17:17.031018Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.031531Z", "completed_at": "2022-11-08T22:17:17.031545Z"}], "thread_id": "Thread-1", "execution_time": 0.012087821960449219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.033929Z", "completed_at": "2022-11-08T22:17:17.044509Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.045035Z", "completed_at": "2022-11-08T22:17:17.045048Z"}], "thread_id": "Thread-1", "execution_time": 0.012675046920776367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day.b5752d5279"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.047483Z", "completed_at": "2022-11-08T22:17:17.055557Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.056070Z", "completed_at": "2022-11-08T22:17:17.056083Z"}], "thread_id": "Thread-1", "execution_time": 0.01018214225769043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.058467Z", "completed_at": "2022-11-08T22:17:17.066564Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.067094Z", "completed_at": "2022-11-08T22:17:17.067107Z"}], "thread_id": "Thread-1", "execution_time": 0.010193109512329102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.109704Z", "completed_at": "2022-11-08T22:17:17.121777Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.122298Z", "completed_at": "2022-11-08T22:17:17.122311Z"}], "thread_id": "Thread-1", "execution_time": 0.014159202575683594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.b7517b039d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.124650Z", "completed_at": "2022-11-08T22:17:17.132729Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.133249Z", "completed_at": "2022-11-08T22:17:17.133262Z"}], "thread_id": "Thread-1", "execution_time": 0.010164022445678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.135674Z", "completed_at": "2022-11-08T22:17:17.145471Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.145991Z", "completed_at": "2022-11-08T22:17:17.146005Z"}], "thread_id": "Thread-1", "execution_time": 0.011892080307006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.148415Z", "completed_at": "2022-11-08T22:17:17.160414Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.160930Z", "completed_at": "2022-11-08T22:17:17.160943Z"}], "thread_id": "Thread-1", "execution_time": 0.014075756072998047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.1db3ffb1b3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.163406Z", "completed_at": "2022-11-08T22:17:17.171414Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.171931Z", "completed_at": "2022-11-08T22:17:17.171944Z"}], "thread_id": "Thread-1", "execution_time": 0.010117769241333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.174288Z", "completed_at": "2022-11-08T22:17:17.183850Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.184360Z", "completed_at": "2022-11-08T22:17:17.184373Z"}], "thread_id": "Thread-1", "execution_time": 0.011612892150878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.186740Z", "completed_at": "2022-11-08T22:17:17.198724Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.199244Z", "completed_at": "2022-11-08T22:17:17.199257Z"}], "thread_id": "Thread-1", "execution_time": 0.014058113098144531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.bd87b032c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.201625Z", "completed_at": "2022-11-08T22:17:17.209387Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.209886Z", "completed_at": "2022-11-08T22:17:17.209898Z"}], "thread_id": "Thread-1", "execution_time": 0.009807109832763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.212241Z", "completed_at": "2022-11-08T22:17:17.220216Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.220734Z", "completed_at": "2022-11-08T22:17:17.220748Z"}], "thread_id": "Thread-1", "execution_time": 0.01005101203918457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.223166Z", "completed_at": "2022-11-08T22:17:17.234960Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.235478Z", "completed_at": "2022-11-08T22:17:17.235492Z"}], "thread_id": "Thread-1", "execution_time": 0.013870716094970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day.da5545b8e6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.237886Z", "completed_at": "2022-11-08T22:17:17.246242Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.246770Z", "completed_at": "2022-11-08T22:17:17.246785Z"}], "thread_id": "Thread-1", "execution_time": 0.010470867156982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.249199Z", "completed_at": "2022-11-08T22:17:17.257363Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.257879Z", "completed_at": "2022-11-08T22:17:17.257894Z"}], "thread_id": "Thread-1", "execution_time": 0.010262012481689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.260326Z", "completed_at": "2022-11-08T22:17:17.269939Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.270458Z", "completed_at": "2022-11-08T22:17:17.270471Z"}], "thread_id": "Thread-1", "execution_time": 0.011701107025146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day.027a518f3c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.272861Z", "completed_at": "2022-11-08T22:17:17.283099Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.283637Z", "completed_at": "2022-11-08T22:17:17.283651Z"}], "thread_id": "Thread-1", "execution_time": 0.012382030487060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.286104Z", "completed_at": "2022-11-08T22:17:17.294447Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.294964Z", "completed_at": "2022-11-08T22:17:17.294977Z"}], "thread_id": "Thread-1", "execution_time": 0.010418891906738281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.297383Z", "completed_at": "2022-11-08T22:17:17.307037Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.307564Z", "completed_at": "2022-11-08T22:17:17.307576Z"}], "thread_id": "Thread-1", "execution_time": 0.011765241622924805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day.dfc5f7da4e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.309966Z", "completed_at": "2022-11-08T22:17:17.319542Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.320046Z", "completed_at": "2022-11-08T22:17:17.320059Z"}], "thread_id": "Thread-1", "execution_time": 0.011626958847045898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.322414Z", "completed_at": "2022-11-08T22:17:17.330459Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.330979Z", "completed_at": "2022-11-08T22:17:17.330992Z"}], "thread_id": "Thread-1", "execution_time": 0.010126829147338867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.333388Z", "completed_at": "2022-11-08T22:17:17.371303Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.371820Z", "completed_at": "2022-11-08T22:17:17.371833Z"}], "thread_id": "Thread-1", "execution_time": 0.04000401496887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.374484Z", "completed_at": "2022-11-08T22:17:17.416281Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.416804Z", "completed_at": "2022-11-08T22:17:17.416817Z"}], "thread_id": "Thread-1", "execution_time": 0.043920278549194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.419627Z", "completed_at": "2022-11-08T22:17:17.429231Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.429743Z", "completed_at": "2022-11-08T22:17:17.429755Z"}], "thread_id": "Thread-1", "execution_time": 0.011837005615234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day.d298bb3cf9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.432120Z", "completed_at": "2022-11-08T22:17:17.440143Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.440664Z", "completed_at": "2022-11-08T22:17:17.440677Z"}], "thread_id": "Thread-1", "execution_time": 0.010106086730957031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.443039Z", "completed_at": "2022-11-08T22:17:17.451318Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.451837Z", "completed_at": "2022-11-08T22:17:17.451850Z"}], "thread_id": "Thread-1", "execution_time": 0.01034998893737793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.454205Z", "completed_at": "2022-11-08T22:17:17.467125Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.467634Z", "completed_at": "2022-11-08T22:17:17.467646Z"}], "thread_id": "Thread-1", "execution_time": 0.014966964721679688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day.ecd611f27e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.470015Z", "completed_at": "2022-11-08T22:17:17.478111Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.478625Z", "completed_at": "2022-11-08T22:17:17.478638Z"}], "thread_id": "Thread-1", "execution_time": 0.01023101806640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.481031Z", "completed_at": "2022-11-08T22:17:17.488802Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.489294Z", "completed_at": "2022-11-08T22:17:17.489306Z"}], "thread_id": "Thread-1", "execution_time": 0.009775161743164062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.491597Z", "completed_at": "2022-11-08T22:17:17.504949Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.505468Z", "completed_at": "2022-11-08T22:17:17.505482Z"}], "thread_id": "Thread-1", "execution_time": 0.015439033508300781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.3a887710fb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.507989Z", "completed_at": "2022-11-08T22:17:17.516279Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.516783Z", "completed_at": "2022-11-08T22:17:17.516796Z"}], "thread_id": "Thread-1", "execution_time": 0.010480165481567383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.519222Z", "completed_at": "2022-11-08T22:17:17.527474Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.528010Z", "completed_at": "2022-11-08T22:17:17.528024Z"}], "thread_id": "Thread-1", "execution_time": 0.010414838790893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.530471Z", "completed_at": "2022-11-08T22:17:17.542393Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.542905Z", "completed_at": "2022-11-08T22:17:17.542918Z"}], "thread_id": "Thread-1", "execution_time": 0.013992786407470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day.cf95489e47"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.545266Z", "completed_at": "2022-11-08T22:17:17.554748Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.555249Z", "completed_at": "2022-11-08T22:17:17.555262Z"}], "thread_id": "Thread-1", "execution_time": 0.011513710021972656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.557600Z", "completed_at": "2022-11-08T22:17:17.565514Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.566019Z", "completed_at": "2022-11-08T22:17:17.566032Z"}], "thread_id": "Thread-1", "execution_time": 0.009978055953979492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.568397Z", "completed_at": "2022-11-08T22:17:17.578593Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.579102Z", "completed_at": "2022-11-08T22:17:17.579114Z"}], "thread_id": "Thread-1", "execution_time": 0.01223897933959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day.03c4f86b19"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.581729Z", "completed_at": "2022-11-08T22:17:17.590962Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.591468Z", "completed_at": "2022-11-08T22:17:17.591481Z"}], "thread_id": "Thread-1", "execution_time": 0.011548757553100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.593838Z", "completed_at": "2022-11-08T22:17:17.601918Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.602437Z", "completed_at": "2022-11-08T22:17:17.602450Z"}], "thread_id": "Thread-1", "execution_time": 0.010171890258789062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.649680Z", "completed_at": "2022-11-08T22:17:17.662227Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.662748Z", "completed_at": "2022-11-08T22:17:17.662761Z"}], "thread_id": "Thread-1", "execution_time": 0.014618873596191406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id.2b09fa5421"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.665137Z", "completed_at": "2022-11-08T22:17:17.673355Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.673863Z", "completed_at": "2022-11-08T22:17:17.673876Z"}], "thread_id": "Thread-1", "execution_time": 0.010301351547241211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.676250Z", "completed_at": "2022-11-08T22:17:17.684333Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.684852Z", "completed_at": "2022-11-08T22:17:17.684865Z"}], "thread_id": "Thread-1", "execution_time": 0.010180950164794922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.687282Z", "completed_at": "2022-11-08T22:17:17.695500Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.696026Z", "completed_at": "2022-11-08T22:17:17.696040Z"}], "thread_id": "Thread-1", "execution_time": 0.010352134704589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.754467Z", "completed_at": "2022-11-08T22:17:17.766213Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.766724Z", "completed_at": "2022-11-08T22:17:17.766737Z"}], "thread_id": "Thread-1", "execution_time": 0.01397395133972168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id.0e972e010a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.769104Z", "completed_at": "2022-11-08T22:17:17.777209Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.777724Z", "completed_at": "2022-11-08T22:17:17.777737Z"}], "thread_id": "Thread-1", "execution_time": 0.010182857513427734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.780082Z", "completed_at": "2022-11-08T22:17:17.789506Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.790025Z", "completed_at": "2022-11-08T22:17:17.790039Z"}], "thread_id": "Thread-1", "execution_time": 0.01149606704711914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.792428Z", "completed_at": "2022-11-08T22:17:17.800457Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.800982Z", "completed_at": "2022-11-08T22:17:17.800994Z"}], "thread_id": "Thread-1", "execution_time": 0.010139942169189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.845197Z", "completed_at": "2022-11-08T22:17:17.855391Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.855904Z", "completed_at": "2022-11-08T22:17:17.855917Z"}], "thread_id": "Thread-1", "execution_time": 0.012258052825927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement.a29cf85a4f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.858253Z", "completed_at": "2022-11-08T22:17:17.866298Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.866828Z", "completed_at": "2022-11-08T22:17:17.866842Z"}], "thread_id": "Thread-1", "execution_time": 0.010166168212890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.869297Z", "completed_at": "2022-11-08T22:17:17.877644Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.878155Z", "completed_at": "2022-11-08T22:17:17.878168Z"}], "thread_id": "Thread-1", "execution_time": 0.010463237762451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.880569Z", "completed_at": "2022-11-08T22:17:17.890256Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.890779Z", "completed_at": "2022-11-08T22:17:17.890793Z"}], "thread_id": "Thread-1", "execution_time": 0.011790037155151367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.893195Z", "completed_at": "2022-11-08T22:17:17.906041Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.906582Z", "completed_at": "2022-11-08T22:17:17.906596Z"}], "thread_id": "Thread-1", "execution_time": 0.014975786209106445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.a46b1b4082"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.908967Z", "completed_at": "2022-11-08T22:17:17.917117Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.917642Z", "completed_at": "2022-11-08T22:17:17.917656Z"}], "thread_id": "Thread-1", "execution_time": 0.010277271270751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.920417Z", "completed_at": "2022-11-08T22:17:17.928586Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.929124Z", "completed_at": "2022-11-08T22:17:17.929137Z"}], "thread_id": "Thread-1", "execution_time": 0.010616064071655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.931568Z", "completed_at": "2022-11-08T22:17:17.945798Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.946322Z", "completed_at": "2022-11-08T22:17:17.946335Z"}], "thread_id": "Thread-1", "execution_time": 0.01633620262145996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.948716Z", "completed_at": "2022-11-08T22:17:17.957018Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.957527Z", "completed_at": "2022-11-08T22:17:17.957541Z"}], "thread_id": "Thread-1", "execution_time": 0.01043081283569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.959924Z", "completed_at": "2022-11-08T22:17:17.967802Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.968311Z", "completed_at": "2022-11-08T22:17:17.968324Z"}], "thread_id": "Thread-1", "execution_time": 0.009942054748535156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.970674Z", "completed_at": "2022-11-08T22:17:17.980054Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:17.980569Z", "completed_at": "2022-11-08T22:17:17.980583Z"}], "thread_id": "Thread-1", "execution_time": 0.011448144912719727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:17.982943Z", "completed_at": "2022-11-08T22:17:18.110846Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.111354Z", "completed_at": "2022-11-08T22:17:18.111368Z"}], "thread_id": "Thread-1", "execution_time": 0.12996387481689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.113946Z", "completed_at": "2022-11-08T22:17:18.134258Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.134769Z", "completed_at": "2022-11-08T22:17:18.134782Z"}], "thread_id": "Thread-1", "execution_time": 0.022385120391845703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.137357Z", "completed_at": "2022-11-08T22:17:18.158179Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.158709Z", "completed_at": "2022-11-08T22:17:18.158722Z"}], "thread_id": "Thread-1", "execution_time": 0.022934913635253906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.224357Z", "completed_at": "2022-11-08T22:17:18.234160Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.234663Z", "completed_at": "2022-11-08T22:17:18.234676Z"}], "thread_id": "Thread-1", "execution_time": 0.011899232864379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day.68c2c0de57"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.236972Z", "completed_at": "2022-11-08T22:17:18.245920Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.246439Z", "completed_at": "2022-11-08T22:17:18.246452Z"}], "thread_id": "Thread-1", "execution_time": 0.011005878448486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.249077Z", "completed_at": "2022-11-08T22:17:18.257078Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.257612Z", "completed_at": "2022-11-08T22:17:18.257627Z"}], "thread_id": "Thread-1", "execution_time": 0.010424137115478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.260093Z", "completed_at": "2022-11-08T22:17:18.269743Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.270257Z", "completed_at": "2022-11-08T22:17:18.270270Z"}], "thread_id": "Thread-1", "execution_time": 0.011758804321289062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.272652Z", "completed_at": "2022-11-08T22:17:18.280835Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.281359Z", "completed_at": "2022-11-08T22:17:18.281372Z"}], "thread_id": "Thread-1", "execution_time": 0.010307788848876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.283824Z", "completed_at": "2022-11-08T22:17:18.294751Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.295277Z", "completed_at": "2022-11-08T22:17:18.295291Z"}], "thread_id": "Thread-1", "execution_time": 0.013061046600341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.297608Z", "completed_at": "2022-11-08T22:17:18.313864Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.314380Z", "completed_at": "2022-11-08T22:17:18.314393Z"}], "thread_id": "Thread-1", "execution_time": 0.018314838409423828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.316977Z", "completed_at": "2022-11-08T22:17:18.334427Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.334933Z", "completed_at": "2022-11-08T22:17:18.334945Z"}], "thread_id": "Thread-1", "execution_time": 0.019520998001098633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.337482Z", "completed_at": "2022-11-08T22:17:18.354833Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.355378Z", "completed_at": "2022-11-08T22:17:18.355392Z"}], "thread_id": "Thread-1", "execution_time": 0.01966404914855957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.425282Z", "completed_at": "2022-11-08T22:17:18.438253Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.438762Z", "completed_at": "2022-11-08T22:17:18.438775Z"}], "thread_id": "Thread-1", "execution_time": 0.015100955963134766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id.03a7e82eb7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.441086Z", "completed_at": "2022-11-08T22:17:18.449227Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.449730Z", "completed_at": "2022-11-08T22:17:18.449741Z"}], "thread_id": "Thread-1", "execution_time": 0.010177850723266602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.452042Z", "completed_at": "2022-11-08T22:17:18.466081Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.466610Z", "completed_at": "2022-11-08T22:17:18.466623Z"}], "thread_id": "Thread-1", "execution_time": 0.01612687110900879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.4efd457bbf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.468977Z", "completed_at": "2022-11-08T22:17:18.477308Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.477822Z", "completed_at": "2022-11-08T22:17:18.477834Z"}], "thread_id": "Thread-1", "execution_time": 0.010476112365722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.480323Z", "completed_at": "2022-11-08T22:17:18.495874Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.496396Z", "completed_at": "2022-11-08T22:17:18.496409Z"}], "thread_id": "Thread-1", "execution_time": 0.017673969268798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_text__keyword_match_type__ad_group_id__campaign_id__account_id.45c0f2075a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.498757Z", "completed_at": "2022-11-08T22:17:18.506947Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.507459Z", "completed_at": "2022-11-08T22:17:18.507471Z"}], "thread_id": "Thread-1", "execution_time": 0.010272026062011719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_text.5d9a007b6f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.509835Z", "completed_at": "2022-11-08T22:17:18.528760Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.529295Z", "completed_at": "2022-11-08T22:17:18.529308Z"}], "thread_id": "Thread-1", "execution_time": 0.021066904067993164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.531951Z", "completed_at": "2022-11-08T22:17:18.544815Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.545321Z", "completed_at": "2022-11-08T22:17:18.545334Z"}], "thread_id": "Thread-1", "execution_time": 0.014924764633178711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id.4b3426da0f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.547638Z", "completed_at": "2022-11-08T22:17:18.574599Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.575731Z", "completed_at": "2022-11-08T22:17:18.575745Z"}], "thread_id": "Thread-1", "execution_time": 0.048491716384887695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.638479Z", "completed_at": "2022-11-08T22:17:18.651266Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.651773Z", "completed_at": "2022-11-08T22:17:18.651786Z"}], "thread_id": "Thread-1", "execution_time": 0.038095951080322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.654063Z", "completed_at": "2022-11-08T22:17:18.662067Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.662559Z", "completed_at": "2022-11-08T22:17:18.662570Z"}], "thread_id": "Thread-1", "execution_time": 0.01002192497253418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.664797Z", "completed_at": "2022-11-08T22:17:18.676438Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.676925Z", "completed_at": "2022-11-08T22:17:18.676936Z"}], "thread_id": "Thread-1", "execution_time": 0.013638973236083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id.1cadcf1583"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.679165Z", "completed_at": "2022-11-08T22:17:18.686785Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.687292Z", "completed_at": "2022-11-08T22:17:18.687304Z"}], "thread_id": "Thread-1", "execution_time": 0.009669065475463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.689639Z", "completed_at": "2022-11-08T22:17:18.711117Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.711629Z", "completed_at": "2022-11-08T22:17:18.711643Z"}], "thread_id": "Thread-1", "execution_time": 0.023535728454589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.714634Z", "completed_at": "2022-11-08T22:17:18.729107Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.729619Z", "completed_at": "2022-11-08T22:17:18.729631Z"}], "thread_id": "Thread-1", "execution_time": 0.017140865325927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id.3c5bc5ae55"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.731930Z", "completed_at": "2022-11-08T22:17:18.739866Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.740364Z", "completed_at": "2022-11-08T22:17:18.740376Z"}], "thread_id": "Thread-1", "execution_time": 0.009986639022827148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.742674Z", "completed_at": "2022-11-08T22:17:18.760465Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.760976Z", "completed_at": "2022-11-08T22:17:18.760989Z"}], "thread_id": "Thread-1", "execution_time": 0.019865036010742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_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.cd216b1424"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-11-08T22:17:18.763297Z", "completed_at": "2022-11-08T22:17:18.771309Z"}, {"name": "execute", "started_at": "2022-11-08T22:17:18.771814Z", "completed_at": "2022-11-08T22:17:18.771826Z"}], "thread_id": "Thread-1", "execution_time": 0.010069131851196289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6"}], "elapsed_time": 60.375226974487305, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/sheri.nguyen/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file From 2002cdfdbd4e5d80bd674c3e10dc035af65f2b3c Mon Sep 17 00:00:00 2001 From: fivetran-sheringuyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Wed, 9 Nov 2022 14:37:59 -0900 Subject: [PATCH 5/8] adding packages reference to google hotfix --- packages.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages.yml b/packages.yml index 2dcc611..381bb78 100644 --- a/packages.yml +++ b/packages.yml @@ -8,8 +8,11 @@ packages: - package: fivetran/facebook_ads version: [">=0.5.0", "<0.6.0"] - - package: fivetran/google_ads - version: [">=0.8.0", "<0.9.0"] + # - package: fivetran/google_ads + # version: [">=0.8.0", "<0.9.0"] + - git: https://github.com/fivetran/dbt_google_ads.git + revision: hotfix/ad-report-model + warn-unpinned: false - package: fivetran/pinterest version: [">=0.6.0", "<0.7.0"] From b541e6d670cf3dfa1793cee85984ed45817c2beb Mon Sep 17 00:00:00 2001 From: fivetran-sheringuyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 10 Nov 2022 09:27:52 -0900 Subject: [PATCH 6/8] condense spark --- .buildkite/scripts/run_models.sh | 4 ++-- CHANGELOG.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index ea3de4b..4ccd1a7 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -17,5 +17,5 @@ echo `pwd` cd integration_tests dbt deps dbt seed --target "$db" --full-refresh -dbt run --target "$db" --full-refresh -dbt test --target "$db" \ No newline at end of file +dbt run --target "$db" --full-refresh --vars '{ad_reporting__pinterest_ads_enabled: false, ad_reporting__tiktok_ads_enabled: false, ad_reporting__snapchat_ads_enabled: false, ad_reporting__apple_search_ads_enabled: false}' +dbt test --target "$db" --vars '{ad_reporting__pinterest_ads_enabled: false, ad_reporting__tiktok_ads_enabled: false, ad_reporting__snapchat_ads_enabled: false, ad_reporting__apple_search_ads_enabled: false}' \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 85176e1..635c417 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # dbt_ad_reporting v1.0.2 ## 🕷️ Bugfixes 🕷️ -- Updated `twitter_ads__using_keywords` to have consistent defaults. [#70](https://github.com/fivetran/dbt_ad_reporting/pull/70) +- Updated `twitter_ads__using_keywords` to have consistent defaults. ([#70](https://github.com/fivetran/dbt_ad_reporting/pull/70)) # dbt_ad_reporting v1.0.1 From 2e2e09cf5c92dd986eb73157c1a260277ac37389 Mon Sep 17 00:00:00 2001 From: fivetran-sheringuyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Wed, 16 Nov 2022 11:45:45 -0900 Subject: [PATCH 7/8] updating requirements --- integration_tests/requirements.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt index 16a258d..ceb6b14 100644 --- a/integration_tests/requirements.txt +++ b/integration_tests/requirements.txt @@ -1,7 +1,7 @@ -dbt-snowflake>=1.0.0 -dbt-bigquery>=1.0.0 -dbt-redshift>=1.0.0 -dbt-postgres>=1.0.0 -dbt-spark>=1.0.0 -dbt-spark[PyHive]>=1.0.0 -dbt-databricks>=1.0.0 \ No newline at end of file +dbt-snowflake>=1.0.0,<1.3.0 +dbt-bigquery>=1.0.0,<1.3.0 +dbt-redshift>=1.0.0,<1.3.0 +dbt-postgres>=1.0.0,<1.3.0 +dbt-spark>=1.0.0,<1.3.0 +dbt-spark[PyHive]>=1.0.0,<1.3.0 +dbt-databricks>=1.0.0,<1.3.0 \ No newline at end of file From 5c3e2236556416a445200ae7b85fc4be6e2a98f3 Mon Sep 17 00:00:00 2001 From: fivetran-sheringuyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Wed, 16 Nov 2022 15:00:37 -0900 Subject: [PATCH 8/8] updating pkgs --- packages.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages.yml b/packages.yml index 381bb78..2dcc611 100644 --- a/packages.yml +++ b/packages.yml @@ -8,11 +8,8 @@ packages: - package: fivetran/facebook_ads version: [">=0.5.0", "<0.6.0"] - # - package: fivetran/google_ads - # version: [">=0.8.0", "<0.9.0"] - - git: https://github.com/fivetran/dbt_google_ads.git - revision: hotfix/ad-report-model - warn-unpinned: false + - package: fivetran/google_ads + version: [">=0.8.0", "<0.9.0"] - package: fivetran/pinterest version: [">=0.6.0", "<0.7.0"]